online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <stdio.h> int main() { //declare variables to use int i, j, rows; //now loop for each row for(i=1; i<=5; ++i) { //this loop will print * until value of outer loop variable(i) is greater than //inner loop vairable(j) for(j=5; j>=i; j--) { printf("*"); } //as soon as inner loop(j) value becomes greater than outer loop printing * ends // & it prints new line using \n printf("\n"); } //now loop for each row for(i=2; i<=5; ++i) { //this loop will print * until value of outer loop variable(i) is greater than //inner loop vairable(j) for(j=1; j<=i; ++j) { printf("*"); } //as soon as inner loop(j) value becomes greater than outer loop printing * ends // & it prints new line using \n 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