Representación en Pycharm
Ejecución del programa
Código:
def sumanum(numeroin,mumerofin,):
suma=0
while numeroin<=numerofin:
suma=suma+numeroin
numeroin=numeroin+1
print suma
numeroin=int(input( "Dame el numero inical:"))
numerofin=int(input("Dame el numero final:"))
sumanum(numeroin,numerofin)
No hay comentarios:
Publicar un comentario