While

 En este codigo hicimos uso del while y el if programando un codigo al cual le daremos un  superior  y otro inferior, al terminar de ejecutarse nos dira cual es el menor y cual es el mayor

Este es el codigo :

inferior = int(input("Dame el numero inferior : "))

superior = int(input("Dame el numero superior : "))


while inferior <= superior :

    print(inferior)

    inferior += 1



n = int(input("Valor inicial : "))

while n > 0 :

    print(n)

    n -= 1

if n == 0

    print("Inicio")

    

    

for n in range (100)

print (n)


n = int(input("Valor inicial : "))

for n in range(100)

    print(n)

    n -= 1

if n == 0

    print("Inicio")

Comments

Popular posts from this blog

PUERTAS LOGICAS BASICAS

Multimetro