Por favor, reportar cualquier inconveniente o problema a coordinacion@labcomp.cl

Número mayor

parent dc01d589
mayor = 0
verdad = True
while verdad:
x = int(raw_input("Ingrese un nmero:\n"))
if x == 0:
verdad = False
elif x >= mayor:
mayor = x
print "El nmero mayor es: ", mayor
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment