online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
public class Main { public static void main(String[] args) { String message = ""; for (int i=1; i<=100; i++) { String text = ""; if (i%2 == 0) text = "Marco"; if (i%9 == 0) text += " Polo"; message += text.trim() + '\n'; } System.out.print(message.replaceAll("(?m)^\\s*\\n", "")); } }

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