def sumaimpar(n, h):
for i in range(h, n+1):
residuo=n%2
if residuo !=0:
print n,
h = h + n
n = n-1
print 'y la suma es: %i' %h
h = int (input('dame numero inicial: '))
n = int (input('dame numero final: '))
sumaimpar(n,h)
Ingenieria en Sistemas Computacionales. Instituto Tecnológico De Matamoros.
-
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 ""...