Arithmetic Operators


Source Code

a=int(input("Enter Number 1 : "))
b=int(input("Enter Number 2 : "))

print("Arithmetic Operations")

print("Addition :",a + b)

print("Subtraction :",a - b)

print("Multiplication :",a * b)

print("Division :",a / b)

print("Modulo :",a % b)

print("Exponentiation :",a ** b)

print("Floor Division :",a // b)

To download raw file Click Here

Output

Enter Number 1 : 20
Enter Number 2 : 13

Arithmetic Operations

Addition : 33
Subtraction : 7
Multiplication : 260
Division : 1.5384615
Modulo : 7
Exponentiation : 81920000
Floor Division : 1