Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Declaración de variables
- temp=-1
- maximo=0
- minimo=0
- #Programa Principal
- while temp!=1000:
- #Ingreso de datos
- temp=int(input("Ingrese una temperatura\n"))
- #Determino el máximo
- if temp != 1000:
- if temp > maximo:
- maximo=temp
- #Determino el mínimo
- if temp < minimo:
- minimo=temp
- #Salida por pantalla
- print("El máximo es:",maximo)
- print("El mínimo es:",minimo)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement