online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
fun main() { println("Coffee Machine") var moneyAmount = 120 var cappuccinoPrice = 200 var espressoPrice = 100 var waterPrice = 50 var greenTeaPrice = 75 if (moneyAmount > cappuccinoPrice) { println("You can buy cappuccino") } if (moneyAmount > espressoPrice) { println("You can buy espresso") } if (moneyAmount > waterPrice) { println("You can buy water") } if (moneyAmount > greenTeaPrice){ println("You can buy green tea") } }

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