Advertisement
shawonrog2

Arithmetic Python

Apr 13th, 2020
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.42 KB | None | 0 0
  1. x =float(input("Enter First Number: "))
  2. y =float(input("Enter Second Number: "))
  3.  
  4. sum = (x+y)
  5. sub = (x-y)
  6. multi = (x*y)
  7. div = (x/y)
  8. mod = x%y
  9.  
  10. print("Summation : {0} + {1} = {2}".format(x,y,sum))
  11. print("Subtraction : {0} - {1} = {2}".format(x,y,sub))
  12. print("Multiplication : {0} / {1} = {2}".format(x,y,multi))
  13. print("Division : {0} * {1} = {2}".format(x,y,div))
  14. print("Modulus : {0} % {1} = {2}".format(x,y,mod))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement