Saturday 3 November 2012

Applying Arithmetic operations on two values


## in this program applied arithmetic operators on two values. But here input not working with Divide. So i have mentioned float with input. And now it will take two values from user and perform all arithmetic operations on that values...


num1=float(input('Enter First Number: '))
num2=float(input('Enter Second Number: '))
print num1,'+',num2,'=',num1+num2
print num1,'-',num2,'=',num1-num2
print num1,'*',num2,'=',num1*num2
print num1,'/',num2,'=',num1/num2

No comments:

Post a Comment