Skip to content

Commit f37a2cb

Browse files
committed
add two numbers
1 parent 96c29e1 commit f37a2cb

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,4 +157,4 @@ cython_debug/
157157
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
158158
# and can be added to the global gitignore or merged into this file. For a more nuclear
159159
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
160-
#.idea/
160+
.idea/

Programs/AddTwoNumbers.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
# ============= Solution 01 =============
3+
# num1 = 10
4+
# num2 = 20
5+
# print("Sum of given two numbers :", num1 + num2)
6+
7+
# ============= Solution 02 =============
8+
num1 = float(input("Enter first number :"))
9+
num2 = float(input("Enter second number :"))
10+
print("Sum of given two numbers :", num1 + num2)

0 commit comments

Comments
 (0)