Sunday, 7 February 2016

Write a Python Program to Print Summation,Subtraction,Multiplication And Division of Two Numbers

"Print Summation,Subtraction,Multiplication And Division of Two Numbers"

a=eval(input('Enter Value A:'))
b=eval(input('Enter Value B:'))
print('Summation :',(a+b))
print('Subtraction :',(a-b))
print('Multiplication :',(a*b))
print('Division :',(a/b))

Output :

>>>
Enter Value A:20
Enter Value B:10
Summation:30
Subtraction:10
Multiplication:200
Division:2
>>>

No comments:

Post a Comment