def sacasuma(numeroin, numerofin):
suma = 0
while numeroin <= numerofin:
suma = suma + numeroin
numeroin = numeroin + 1
print 'la suma es ',suma
numeroin = int (input('dame numero inicial: '))
numerofin = int (input('dame numero final: '))
sacasuma(numeroin,numerofin)
Ingenieria en Sistemas Computacionales. Instituto Tecnológico De Matamoros.
Programa - Suma los numeros en un intervalo
-
import pygame from pygame.locals import * from OpenGL.GL import * from OpenGL.GLU import * verticies = ( (1, -1, -1), (1, 1, -1)...
-
import os import random import threading from Tkinter import * from PIL import Image, ImageTk import time import pygame ""...