Skip to content

Commit 1b7fe0b

Browse files
Create Calculation with two numbers
1 parent afab6c9 commit 1b7fe0b

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Taking input from the user
2+
x = input("Enter a number: ")
3+
y = input("Enter another number: ")
4+
5+
# Converting string into float
6+
x = float()
7+
y = float()
8+
9+
#Calculating (adding) and printing the result
10+
z = x + y
11+
"""
12+
for subtraction z = x - y
13+
for multiplication z = x * y
14+
for division z = x / y
15+
"""
16+
print(z)

0 commit comments

Comments
 (0)