/* 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;
int cappucinoPrice = 150;
int lattePrice = 120;
int espressoPrice = 80;
int milkPrice = 50;
boolean canBuyAnything = false;
if(moneyAmount >= cappucinoPrice) {
System.
out.
println("Вы можете купить капучино"); canBuyAnything = true;
}
if(moneyAmount >= lattePrice) {
System.
out.
println("Вы можете купить латте"); canBuyAnything = true;
}
if(moneyAmount >= espressoPrice) {
System.
out.
println("Вы можете купить эспрессо"); canBuyAnything = true;
}
if(moneyAmount >= milkPrice) {
System.
out.
println("Вы можете купить молоко"); canBuyAnything = true;
}
if(canBuyAnything == false) {
System.
out.
println("Денег нет, но вы держитесь!! :)"); }
}
}
Ci8qIHBhY2thZ2Ugd2hhdGV2ZXI7IC8vIGRvbid0IHBsYWNlIHBhY2thZ2UgbmFtZSEgKi8KIAppbXBvcnQgamF2YS51dGlsLio7CmltcG9ydCBqYXZhLmxhbmcuKjsKaW1wb3J0IGphdmEuaW8uKjsKIAovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCVN5c3RlbS5vdXQucHJpbnRsbigi0JrQvtGE0LUt0LzQsNGI0LjQvdCwIik7CiAKCQlpbnQgbW9uZXlBbW91bnQgPSAxMjsKIAoJCWludCBjYXBwdWNpbm9QcmljZSA9IDE1MDsKCQlpbnQgbGF0dGVQcmljZSA9IDEyMDsKCQlpbnQgZXNwcmVzc29QcmljZSA9IDgwOwoJCWludCBtaWxrUHJpY2UgPSA1MDsKIAoJCWJvb2xlYW4gY2FuQnV5QW55dG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