suma de 10 numeros con el ciclo while
Python
x = 1
suma = 0
while x <= 10:
n = int( input())
print("Escribe el numero %s:" %str(x),n)
suma = suma + n
x = x + 1
prom = suma/10
print("La suma de los numeros es: ",suma)
print("El promedio de la suma es:" ,prom)
Output
Embed on website
To embed this program on your website, copy the following code and paste it into your website's HTML:
Comments
This comment belongs to a banned user and is only visible to admins.
This comment belongs to a deleted user and is only visible to admins.