Basic Mathematical Operations
Submit solution
Points:
1
Time limit:
2.0s
Memory limit:
256M
Problem types
Allowed languages
Python
Write a program that reads an operator and two integers.
The operator will be one of:
+for addition-for subtraction*for multiplication/for division
Print the result of applying the operator to the two integers.
For division, the first integer will always be divisible by the second integer, so the answer will be a whole number.
Input
The input contains one operator followed by two integers on one line.
Output
Output the result.
Sample Input
+ 4 7
Sample Output
11
Comments