Read two integers and an operator (+, -, *, or /), and print the result. Division should be whole-number 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.pas is the entry point. Add extra units for OOP exercises — they compile together.
Run your code to see test results here.