Números pares até 100
Exibe os numeros pares ate 100
Descrição
Exibe os numeros pares ate 100
#!/usr/bin/env python cont = 0 while cont<100: cont = cont + 2 print "%d" % (cont)
#!/usr/bin/env python cont = 0 while cont<100: cont = cont + 2 print "%d" % (cont)
Estrutura de repetição for e while
for num in xrange(0,101,2):
....print(num)