Skip to content

Instantly share code, notes, and snippets.

@vikychoi
Created November 5, 2017 03:46
Show Gist options
  • Save vikychoi/169a60cd591130e016602776d2ae3c24 to your computer and use it in GitHub Desktop.
Save vikychoi/169a60cd591130e016602776d2ae3c24 to your computer and use it in GitHub Desktop.
k = int(input("input a number"))
d = int(input("give me a number to devide"))
if k/d == 0 :
print("it has been divided evenly")
else:
print("it had not been divided evenly")
if k % 2 == 1:
print("it is an odd number")
elif k%4 == 0 and k > 4:
print("it is multiple of 4")
else:
print("it is an even number")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment