Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x =float(input("Enter First Number: "))
- y =float(input("Enter Second Number: "))
- sum = (x+y)
- sub = (x-y)
- multi = (x*y)
- div = (x/y)
- mod = x%y
- print("Summation : {0} + {1} = {2}".format(x,y,sum))
- print("Subtraction : {0} - {1} = {2}".format(x,y,sub))
- print("Multiplication : {0} / {1} = {2}".format(x,y,multi))
- print("Division : {0} * {1} = {2}".format(x,y,div))
- print("Modulus : {0} % {1} = {2}".format(x,y,mod))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement