/******************************************************************************
Online Java Compiler.
Code, Compile, Run and Debug java program online.
Write your code in this editor and press "Run" button to execute it.
*******************************************************************************/
public class Main
{
public static void main(String[] args) {
System.out.println("Кофе-машина - Артур Салихов");
int moneyAmount = 250;
System.out.println("Вы внесли " + moneyAmount + " руб.");
int cappucinoPrice = 200;
int espressoPrice = 100;
int waterPrice = 50;
int macocinoPrice = 250;
if (moneyAmount >= cappucinoPrice) {
System.out.println("Вы можете купить капучино");
}
if (moneyAmount >= espressoPrice) {
System.out.println("Вы можете купить эспрессо");
}
if (moneyAmount >= waterPrice) {
System.out.println("Вы можете купить воду");
}
if (moneyAmount >= macocinoPrice) {
System.out.println("Вы можете купить макочино");
}
}
}