Este es el programa nos sirve para determinar si un numero es par y impar.
Paso 1.
Se define la variable numero y se utiliza el comando input para que se pueda ingresar el valor.
Paso2.
Luego la variable numero se vuelve a entero
# CODIGO PARA DETERMINAR SI UN MUNERO ES PAR O IMPARprint('PROGRAMA PARA DETERMINAR SI UN NUMERO ES PAR')
numero = input('INGRESA EL NUMERO A EVALUAR')
numero = int(numero)
Paso 3
Se ejecuta la operacion de división de la variable numero y que nos muestre el residuo.
numero = (numero%2)
##print (10%3) ## muestra el residuo de una division
Paso4. Se ejecuta la función condicional IF, se indica la condición si la variable numero es mayor a 0 se imprime es numero impar y si no lo cumple se imprime es numero par.
if numero > 0 :
print(‘es numero impar’)else:
print(‘es numero par’)
e indica la condición si la variable numero es mayor a 0 se imprime
steeleenergysolutions
Obstacles that aren’t just static triangles but appear as dynamic, expanding or contracting “walls” that require precise timing to slip through gaps. Tap Road
As more people play sprunki and find out how fun it is, it’s clear that this game will stay a favorite for years to come.
@jacksmith This discussion brings up some interesting points that I hadn’t considered before, and I think it could spark some great conversations among us
@Block Blast As a real-life experiencer, I always give my honest opinion.
Enhance the experience for Block Blast players, simple graphics but the excitement is in your strategy. I appreciate your article.