daily pastebin goal
63%
SHARE
TWEET

Untitled

a guest Mar 25th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. lista_monet = []
  3.  
  4.  
  5. kwota = int(input("Podaj kwote do rozmienienia: "))
  6. a = kwota
  7.  
  8.  
  9. while kwota >= 5:
  10.     lista_monet.append(5)
  11.     kwota -= 5
  12. while kwota >= 2:
  13.     lista_monet.append(2)
  14.     kwota -=2
  15. while kwota >= 1:
  16.     lista_monet.append(1)
  17.     kwota -=1
  18. while kwota >= 0.5:
  19.     lista_monet.append(0.5)
  20.     kwota -=0.5
  21. while kwota >= 0.2:
  22.     lista_monet.append(0.2)
  23.     kwota -=0.2
  24. if kwota <= 0.1 and kwota >0 :
  25.     lista_monet.append(0.1)
  26.  
  27. print("Rozmieniłem " ,a, "na : ",lista_monet)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top