Skip to content

Commit 3bf53da

Browse files
Merge pull request #95 from shauryachats/solves8
Solves #8
2 parents 39ad935 + b81da74 commit 3bf53da

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Code/division.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
firstnum = int(input("First number: "))
3+
secondnum = int(input("Second number: "))
4+
5+
if secondnum == 0:
6+
print("Division by zero illegal.")
7+
else:
8+
print("The result is " + str(firstnum/secondnum))

0 commit comments

Comments
 (0)