Skip to content

Instantly share code, notes, and snippets.

@klebershimabuku
Created November 26, 2013 15:05
Show Gist options
  • Save klebershimabuku/7659901 to your computer and use it in GitHub Desktop.
Save klebershimabuku/7659901 to your computer and use it in GitHub Desktop.
dado um número, informa através de uma mensagem se o mesmo é par e se é maior que 100.
n = input("digite um numero: ")
par = (n % 2 == 0)
gt100 = (n > 100)
if par:
print("numero eh par.")
else:
print("numero eh impar.")
if gt100:
print("numero eh maior do que 100")
else:
print("numero eh menor do que 100")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment