Skip to content

Instantly share code, notes, and snippets.

@ghughes13
Last active June 5, 2016 20:28
Show Gist options
  • Save ghughes13/cad3b1c7be201c638fe619afa24b7b39 to your computer and use it in GitHub Desktop.
Save ghughes13/cad3b1c7be201c638fe619afa24b7b39 to your computer and use it in GitHub Desktop.
Calculates numbers that go into another number up to 100.
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