We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3ee30d4 + 49f05ba commit 5def0c5Copy full SHA for 5def0c5
addition of two number
@@ -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