Skip to main content

#Arthmatic Operator

#Arthmatic Operator




  1. a = 21 
  2. b = 10

  3. #Addition
  4. c=a+b
  5. print("Line 1 : the value of c :",c) #'print' use for print line.

  6. #Subtraction
  7. c=a-b
  8. print("Line 2 : the value of c :",c)

  9. #Multiplication
  10. c=a*b
  11. print("Line 3 : the value of c :",c)

  12. #Division
  13. c=a/b
  14. print("Line 4 : the value of c :",c)

  15. #Modulus
  16. c=a%b
  17. print("Line 5 : the value of c :",c)



# Output

# Line 1 : the value of c : 31

# Line 2 : the value of c : 11

# Line 3 : the value of c : 210

# Line 4 : the value of c : 2.1

# Line 5 : the value of c : 1




                                                 #ThE ProFessoR