-
Lenguaje
Python
-
Descripción
Sumar 100 números leídos por teclado.
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
import os
suma = 0
for i in range (1, 101):
print ('PROCESO ' + repr (i))
un_numero = float (input ('Ingresa el valor de un numero: '))
suma=suma+un_numero
print ()
print ('Valor de suma: ' + repr (suma))
os.system ('pause')
suma = 0
for i in range (1, 101):
print ('PROCESO ' + repr (i))
un_numero = float (input ('Ingresa el valor de un numero: '))
suma=suma+un_numero
print ()
print ('Valor de suma: ' + repr (suma))
os.system ('pause')