Last active
June 5, 2016 20:28
-
-
Save ghughes13/cad3b1c7be201c638fe619afa24b7b39 to your computer and use it in GitHub Desktop.
Calculates numbers that go into another number up to 100.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
num = int(input("Please enter a number: ")) | |
x = range(2, 101) | |
for i in x: | |
if num % i == 0: | |
print i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment