the_austria

money.py

Oct 24th, 2012
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. geld=int(input("Geldbetrag:"))
  2. scheine=[500,200,100,50,20,10,5]
  3. for schein in scheine:
  4.   while geld//schein >= 1:
  5.     geld-=schein
  6.     print(schein)
Add Comment
Please, Sign In to add comment