Skip to content

Commit 935317a

Browse files
Merge pull request #15 from siddhu15798/master
Python Programme to add two numbers
2 parents afc798a + 296956f commit 935317a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

SimpleAddition/sum.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Simple Python program to Add Two Numbers
2+
3+
num1 = input(" Please Enter the 1st Number: ")
4+
num2 = input(" Please Enter the 2nd number: ")
5+
6+
# Using arithmetic + Operator to add two numbers
7+
sum = float(num1) + float(num2)
8+
print('The sum of {0} and {1} is {2}'.format(num1, num2, sum))

0 commit comments

Comments
 (0)