/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
class Ideone
{
{
System.
out.
println("Coffee Machine:");
int moneyAmount = 19;
int cappucinoPrice = 150;
int espressoPrice = 80;
int waterPrice = 20;
int milkPrice = 40;
boolean canBuyAnything = false;
if (moneyAmount >= cappucinoPrice) {
System.
out.
println("You can buy cappucino"); canBuyAnything = true;
}
if (moneyAmount >= espressoPrice) {
System.
out.
println("You can buy espresso"); canBuyAnything = true;
}
if (moneyAmount >= waterPrice) {
System.
out.
println("You can buy water"); canBuyAnything = true;
}
if (moneyAmount >= milkPrice) {
System.
out.
println("You can buy milk"); canBuyAnything = true;
}
if(canBuyAnything == false) {
System.
out.
println("No money no honey"); }
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgoKY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCVN5c3RlbS5vdXQucHJpbnRsbigiQ29mZmVlIE1hY2hpbmU6Iik7CgkJCgkgICAgaW50IG1vbmV5QW1vdW50ID0gMTk7CgkgICAgCgkgICAgaW50IGNhcHB1Y2lub1ByaWNlID0gMTUwOwoJICAgIGludCBlc3ByZXNzb1ByaWNlID0gODA7CgkgICAgaW50IHdhdGVyUHJpY2UgPSAyMDsKCSAgICBpbnQgbWlsa1ByaWNlID0gNDA7CgkgICAgCgkgICAgYm9vbGVhbiBjYW5CdXlBbnl0aGluZyA9IGZhbHNlOwoJICAgIAoJICAgIGlmIChtb25leUFtb3VudCA+PSBjYXBwdWNpbm9QcmljZSkgewoJICAgIAlTeXN0ZW0ub3V0LnByaW50bG4oIllvdSBjYW4gYnV5IGNhcHB1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