Given two integers a and b, your task is to calculate and print the following four values:-
a+b
a-b
a*b
a/b using python
print("------------------ My Little calculator ----------------")
a=int(input('a='))
b=int(input('b='))
print("a+b="+str(a+b))
print("a-b="+str(a-b))
print("a*b="+str(a*b))
print("a/b="+str(a/b))
Comments
Leave a comment