valores = [10, 20, 30, 40, 50]
tam=len(valores)
max=0
acumuladorSuma=0
while max<tam: #para probar while, es mas facil con for
acumuladorSuma+=valores[max]
max+=1
print(acumuladorSuma)
valores = [10, 20, 30, 40, 50]
tam=len(valores)
max=0
acumuladorSuma=0
while max<tam: #para probar while, es mas facil con for
acumuladorSuma+=valores[max]
max+=1
print(acumuladorSuma)