online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> int main(void) { // n is number of rows int n = 5; int i, j, k; // loop for each row for (i = n; i >= 1; i--) { // print space for (j = n; j > i; j--) printf(" "); // print '*' for (k = 1; k < (i * 2); k++) printf("*"); // move to the next line printf("\n"); } return 0; }

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