Author: Vijay Kumar
Language Used: Java
- Java JDK 8 or above must be installed
- Any Java IDE (VS Code, IntelliJ, Eclipse) OR command line
A simple calculator that performs:
- Addition
- Subtraction
- Multiplication
- Division
Inputs:
a= doubleb= doubleoperation= String
File: Problem-1.java
Example:
- Input: 4
- Output:
1, 3, 5, 7
File: Problem-2.java
Examples:
- a = 4 → output:
1, 3, 5 - a = 5 → output:
1, 3, 5 - a = 6 → output:
1, 3, 5
File: Problem-3.java
Example input: [1, 2, 8, 9, 12, 46, 76, 82, 15, 20, 30]
Output: {1: 11, 2: 8, 3: 4, 4: 4, 5: 3, 6: 2, 7: 0, 8: 1, 9: 1}