Skip to content

Instantly share code, notes, and snippets.

@joepreludian
Created November 15, 2013 15:05
Show Gist options
  • Save joepreludian/7485724 to your computer and use it in GitHub Desktop.
Save joepreludian/7485724 to your computer and use it in GitHub Desktop.
Numero Negativo - Eliselma - Python
vetor = []
qtd_negativo = 0
for i in range(5):
print 'Insira o %s numero' % i
vetor.append(int(raw_input()))
for item in vetor:
if item < 0:
qtd_negativo += 1
print 'Existe %s numero(s) negativo(s)' % qtd_negativo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment