Python Program To Add Two Numbers Given By The User

Python Program To Add Two Numbers Given By The User

Code
# Python program to add two numbers given by users...

number1=input('Enter first number:\n')
number2=input('Enter second number:\n')
sum=float(number1)+float(number2)
print('The sum of two numbers is:\n',sum)
Output
Enter first number:
5
Enter second number:
9
The sum of two numbers is:
 14.0

Post a Comment