online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
public class Main { public static void main(String[] args) { System.out.println("Кофемашина"); int moneyAmount = 120; boolean canBuyAnything = false; int[] prices = {200, 100, 50, 75}; String[] names = {"капучино", "эспрессо", "вода", "молоко"}; int length = Math.min(prices.length, names.length); for (int i = 0; i < length; i++) { if (moneyAmount >= prices[i]) { System.out.println("Вы можете купить " + names[i]); canBuyAnything = true; } } if (!canBuyAnything) { System.out.println("Недостаточно средств :( Изучайте Java и зарабатывайте много"); } } }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue