How To Make A Basic Calculator
#BASIC CALCULATOR
n1=int(input('Enter number 1 ='))
op=input('Enter operator(+,-,*,/) :-')
n2=int(input('Enter number 2 ='))
if(op=='+'):
print('The Result = ',n1+n2)
elif(op=='-'):
print('The Result = ',n1-n2)
elif(op=='*'):
print('The Result = ',n1*n2)
elif(op=='/'):
print('The Result = ',n1/n2)
else:
print('ERROR')
Made By:-
Nilay Saraf
Comments
Post a Comment