Write a program in python take two input from user and find addition,
Subtraction, Multiplication and division.
Answers
Answered by
2
a = int(input("Enter a number')
b = int(input("Enter another number")
print ("Sum is", a+b)
if a> b:
print (a-b)
else:
print (b-a)
print ("Product is",a*b)
print ("Quotient is", a/b "or", b/a)
Hope this helps you! Make sure you give a condition such as "let b be greater than a" or "let a be greater than b" It will add more clarity to the program!
Similar questions