online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> int main(void) { int n,m; printf("Enter the number"); scanf("%d",&n); m=2*n-1; for(int i=1;i<=m;i++) { for(int j=1;j<=m;j++) { if(i==j || j==(m-i+1)) { printf("*"); } else { printf(" "); } } 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