PROGRAMMING:Simple calculator program
Write a simple calculator program, which can add, subtract, multiply, divide or complement two integers according to the input operator. The input and output of the title should not exceed the integer range.
###Input format:
In a row, give the operands 1, operator, operands 2, separated by spaces. The data type of operands is integer, and the denominator of division and remainder is nonzero.
###Output format:
When the operators are +, -, *, /,%, the corresponding operation results are output in one line. If the input is an illegal symbol (i.e. other symbols except the five operators of addition, subtraction, multiplication, division and remainder), output "error".
###Input sample 1:
```in
-7 / 2
```
###Output sample 1:
```out
-3.5
```
###Input sample 2:
```in
-7 % 2
```
###Output sample 2:
```out
one
```
###Input sample 3:
```in
-7 # 2
```
###Output sample 3:
```out
ERROR
```
answer:If there is no answer, please comment
###Input format:
In a row, give the operands 1, operator, operands 2, separated by spaces. The data type of operands is integer, and the denominator of division and remainder is nonzero.
###Output format:
When the operators are +, -, *, /,%, the corresponding operation results are output in one line. If the input is an illegal symbol (i.e. other symbols except the five operators of addition, subtraction, multiplication, division and remainder), output "error".
###Input sample 1:
```in
-7 / 2
```
###Output sample 1:
```out
-3.5
```
###Input sample 2:
```in
-7 % 2
```
###Output sample 2:
```out
one
```
###Input sample 3:
```in
-7 # 2
```
###Output sample 3:
```out
ERROR
```
answer:If there is no answer, please comment