# write a program to perform airthmatics operation

a=int(input("enter the number"))
b=int(input("enter the number"))
sum=a+b
sub=a-b
mul=a*b
div=a/b
module=a%b
expo=a**b
print("sum",sum)
print("sub",sub)
print("multiplication",mul)
print("division",div)
print("module",module)
print("exponential",expo)


output-
Enter the number :10
Enter the number :8
sum 18
sub 2
multiplication 80
division 1.25
module 2
exponential 100000000
>>> 

Comments

Popular posts from this blog

# Write a program to demonstrate relational operator