Skip to content

Instantly share code, notes, and snippets.

@lrlucena
Created August 16, 2018 17:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lrlucena/fc34900d3ebe00944f6da76eb4180077 to your computer and use it in GitHub Desktop.
Save lrlucena/fc34900d3ebe00944f6da76eb4180077 to your computer and use it in GitHub Desktop.
Aula_08_2018
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")
b = int(input())
print("B > 18", b>18)
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")
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