Created
August 16, 2018 17:19
-
-
Save lrlucena/fc34900d3ebe00944f6da76eb4180077 to your computer and use it in GitHub Desktop.
Aula_08_2018
This file contains hidden or 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 = int(input("Digite um numero: ")) | |
if n % 5 == 0: | |
print(n, "é multiplo de 5.") | |
else: | |
print(n, "não é multiplo de 5.") | |
print("fim") |
This file contains hidden or 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
b = int(input()) | |
print("B > 18", b>18) |
This file contains hidden or 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
n1 = float(input("Digite a primeira nota: ")) | |
n2 = float(input("Digite a segunda nota: ")) | |
media = (n1 *2 + n2 * 3) / 5 | |
if media >= 6.0: | |
print("Aprovado") | |
print("Parabens") | |
else: | |
print("Recuperação") |
This file contains hidden or 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 = int(input("Digite um numero: ")) | |
if n % 2 == 0: | |
print(n,"é par.") | |
else: | |
print(n,"é impar.") | |
eh_par = n % 2 == 0 | |
if eh_par: | |
print(n,"é par.") | |
else: | |
print(n,"é impar.") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment