Skip to content

Commit 7cc777b

Browse files
committed
Add 5.1.7
1 parent eb213d8 commit 7cc777b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

CodeHS/5/1/7/Divisibility-Joe.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
"""
2+
This program made by Joe
3+
"""
4+
numerator = int(input("Enter a numerator: "))
5+
denominator = int(input("Enter denominator: "))
6+
7+
while denominator == 0:
8+
denominator = int(input("Enter denominator: "))
9+
10+
11+
12+
if numerator / denominator * denominator == numerator:
13+
print "Divides evenly!"
14+
else:
15+
print "Doesn't divide evenly."

0 commit comments

Comments
 (0)