We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb213d8 commit 7cc777bCopy full SHA for 7cc777b
CodeHS/5/1/7/Divisibility-Joe.py
@@ -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