/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
System.
out.
println("Кофе-машина - Даниил Пилипенко");
int moneyAmount = 12;
System.
out.
println("Вы внесли " + moneyAmount
+ " руб.");
int cappucinoPrice = 150;
int espressoPrice = 80;
int waterPrice = 20;
int chocolatePrice = 70;
boolean canBuyAnything = false;
if (moneyAmount >= cappucinoPrice) {
System.
out.
println("Вы можете купить капучино"); canBuyAnything = true;
}
if (moneyAmount >= espressoPrice) {
System.
out.
println("Вы можете купить эспрессо"); canBuyAnything = true;
}
if (moneyAmount >= waterPrice) {
System.
out.
println("Вы можете купить воду"); canBuyAnything = true;
}
if (moneyAmount >= chocolatePrice) {
System.
out.
println("Вы можете купить Горячий Шоколад"); canBuyAnything = true;
}
if (canBuyAnything == false) {
System.
out.
println("Недостаточно средств :( Изучайте Java и зарабатывайте много!))"); }
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCVN5c3RlbS5vdXQucHJpbnRsbigi0JrQvtGE0LUt0LzQsNGI0LjQvdCwIC0g0JTQsNC90LjQuNC7INCf0LjQu9C40L/QtdC90LrQviIpOwoJCQoJCWludCBtb25leUFtb3VudCA9IDEyOwoJCQoJCVN5c3RlbS5vdXQucHJpbnRsbigi0JLRiyDQstC90LXRgdC70LggIiArIG1vbmV5QW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