Advertisement
Ivan_sjc

exercicio Notas Python

Mar 25th, 2013
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. valor = input("iNSIRA O VALOR DAS NOTAS"):
  2.  
  3. NOTAS = [1,10,50,100]
  4.  
  5. contador = 0
  6.  
  7. for valor in notas :
  8.     while valor>= notas:
  9.        total = valor-notas
  10.  
  11.        contador = contador + 1
  12.  
  13. print(total)
  14.  
  15. print(notas)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement