Basic Math
Calculator
Create a
calculator that takes a number, a basic math operator (+, -, *, /) and a second
number all from user input, and have it print the result of the mathematical
operation.
Input: In the first line you will get a number,
a math operator (+, -, *, /) and second number.
Output : Result of the calculation.
Sample Input1:
|
Sample Input2:
|
Sample Input3:
|
5 + 7
|
8 / 5
|
6 / 0
|
Sample Output1:
|
Sample Output2:
|
Sample Output3:
|
12
|
1.6
|
Error: Division
by zero!
|
Äëÿ îòïðàâêè ðåøåíèé íåîáõîäèìî