fork download
  1. print("Кофе-машина")
  2.  
  3. money_amount = 150
  4.  
  5. latte_price = 200
  6. americano_price = 100
  7. milk_price = 50
  8.  
  9. if money_amount >= latte_price:
  10. print("Вы можете купить латтэ")
  11.  
  12. if money_amount >= americano_price:
  13. print("Вы можете купить американо")
  14.  
  15. if money_amount >= milk_price:
  16. print("Вы можете купить молоко")
Success #stdin #stdout 0.02s 9200KB
stdin
Standard input is empty
stdout
Кофе-машина
Вы можете купить американо
Вы можете купить молоко