fork(1) download
  1. print("Кофе-машина — сергей прилипко ")
  2.  
  3. var moneyAmount = 120
  4.  
  5. var cappucinoPrice = 150
  6. var espressoPrice = 80
  7. var waterPrice = 20
  8. var juicePrice = 125
  9.  
  10. if moneyAmount >= cappucinoPrice {
  11. print("Вы можете купить капучино")
  12. }
  13.  
  14. if moneyAmount >= espressoPrice {
  15. print("Вы можете купить эспрессо")
  16. }
  17.  
  18. if moneyAmount >= waterPrice {
  19. print("Вы можете купить вода")
  20. }
  21.  
  22. if moneyAmount >= juicePrice {
  23. print("Вы можете купить сок")
  24. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:1: error: class, interface, or enum expected
print("????-?????? ? ?????? ???????? ")
^
1 error
stdout
Standard output is empty