Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cuantosn=int(input("Cuantos numero vas a introducir? "))
- if cuantosn <= 0:
- print("Tienes que introducir al menos un numero loco.")
- else:
- execucions=1
- suma=0
- while execucions <= cuantosn:
- valor=float(input("Venga dame un numero! "))
- suma= suma+ valor
- execucions= execucions + 1
- print("La suma total dels numeros es", suma)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement