def sumareg(numeroin,numerofin):
suma=0
while numeroin>=numerofin:
suma=suma+numeroin
numeroin=numeroin-2
print "Suma",suma
numeroin=int(input("Dame el numero inicial: "))
numerofin=int(input("Dame el numero final: "))
sumareg(numeroin,numerofin
No hay comentarios:
Publicar un comentario