Skip to content

Commit b81da74

Browse files
committed
Solves #8
1 parent dfdb312 commit b81da74

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)