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),(-1, 1, -...
-
Paso 1: Abrir una ventana de comandos Paso 2: Navegar hasta C:\Python27\Scripts cd.. cd.. cd Python27 cd Scripts pip install...
