Read two integers and an operator (+, -, *, or /), and print the result. Division should behave like normal Java integer division.
Input / Output
Input: line 1 has two integers "a b", line 2 has a single operator character. Output: the result of a (operator) b.
Examples
Input
6 3 +
Expected Output
9
Input
10 4 *
Expected Output
40
+ 2 hidden tests checked on Submit.
Main.java is the entry point. Add extra classes for OOP exercises — they compile together.
Run your code to see test results here.