Input Format:
The first line is a number The second line is an operator (+,-,*,/) The last line is a number
Output Format:
Output the result of an operation(2 decimal places) If the divisor is zero, the error 'divided by zero' is displayed.
Sample Inputs1:
7
/
3
结尾无空行
Sample Output1:
2.33
结尾无空行
Sample Inputs2:
10
/
0
结尾无空行
Sample Output2:
divided by zero
结尾无空行
x=input()
code=input()
y=input()
if code=='/' and y=='0':
print('divided by zero')
elif x.isdigit() and y.isdigit():
print(round(eval(x+code+y),2),end='')
a = input()
b = input()
c = input()
if b == "+":
print(int(a) + int(c))
if b == "-":
print(int(a) - int(c))
if b == "*":
print(int(a) * int(c))
if b == "/":
if int(c) == 0:
print('divided by zero')
else:
print(round(int(a) / int(c), 2))