Skip to content

Commit

Permalink
PYTHON Ejercicio.-6 Validar si un n煤mero es par o impar[21]馃悕馃憟馃憟馃憟
Browse files Browse the repository at this point in the history
  • Loading branch information
programadornovato committed Jun 23, 2020
1 parent ec521ca commit 90ea6cf
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ejercicios/06parImpar.py
@@ -0,0 +1,12 @@
numero1=int(input("Humano inresa un numero par:"))
numero2=int(input("Humano inresa otro numero par:"))
numeroPar1=numero1%2
numeroPar2=numero2%2
if numeroPar1==0 and numeroPar2==0:
print("Buen chico, ahora dame la patita")
else:
print("Humano tonto, los dos numeros deberian ser par")
if numeroPar1!=0:
print(f"El numero {numero1} no es par")
if numeroPar2!=0:
print(f"El numero {numero2} no es par")

0 comments on commit 90ea6cf

Please sign in to comment.