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 milkPrice = 65 if (moneyAmount >= cappuccinoPrice) { println("You can buy cappucino") } if (moneyAmount >= espressoPrice) { println("You can buy espresso") } if (moneyAmount >= waterPrice) { println("You can buy water") } if (moneyAmount >= milkPrice) { println("You can buy milk") } }

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