Q. write a python program arithmetics operation for the given number.
consider the two number num1=20 num2=10
Ans:
num1=20
num2=10
num3=num1+num2
print("The addition of two number is=",num3)
num4=num1-num2
print("The substraction of two number is",num4)
num5=num1*num2
print("The multiplication of two number is",num5)
num6=num1/num2
print("The division of two number is",num6)
Output
The addition of two number is=30
The substraction of two number is=10
The multiplication of two number is=200
The division of two number is=2
consider the two number num1=20 num2=10
Ans:
num1=20
num2=10
num3=num1+num2
print("The addition of two number is=",num3)
num4=num1-num2
print("The substraction of two number is",num4)
num5=num1*num2
print("The multiplication of two number is",num5)
num6=num1/num2
print("The division of two number is",num6)
Output
The addition of two number is=30
The substraction of two number is=10
The multiplication of two number is=200
The division of two number is=2
Nice coding information
ReplyDelete