Skip to content

Instantly share code, notes, and snippets.

@lrlucena

lrlucena/cinco.py

Created Aug 16, 2018
Embed
What would you like to do?
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