Python Program to Perform all Arithmetic Operations

 

  Python Program to Perform all Arithmetic Operations

A=20

B=30

Addition=A+B

print("The addition of  A and B is: ",Addition)

Subtraction=A-B

print("The subtraction is:",Subtraction)

Multiplication=A*B

print("The multiplication is:",Multiplication)

Division=A/B

print("The division is:",Division)

Remainder=A%B

print("The remainder of division is:",Remainder)

Output:

The addition of  A and B is:  50

The subtraction is: -10

The multiplication is: 600

The division is: 0.6666666666666666

The remainder of division is: 20

 

 

टिप्पणी पोस्ट करा

0 टिप्पण्या