Skip to content

Commit 5def0c5

Browse files
authored
Merge pull request #67 from sid2631/patch-1
Create addition of two number
2 parents 3ee30d4 + 49f05ba commit 5def0c5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

addition of two number

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Store input numbers
2+
num1 = input('Enter first number: ')
3+
num2 = input('Enter second number: ')
4+
5+
# Add two numbers
6+
sum = float(num1) + float(num2)
7+
8+
# Display the sum
9+
print('The sum of {0} and {1} is {2}'.format(num1, num2, sum))

0 commit comments

Comments
 (0)