Created
November 26, 2013 15:05
-
-
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.
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
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