online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
/****************************************************************************** Online C Compiler. Code, Compile, Run and Debug C program online. Write your code in this editor and press "Run" button to compile and execute it. *******************************************************************************/ #include<stdio.h> void main() { int a[5],i,j=0,save=0; //input loop for(i=0;i<5;i++) scanf("%d",&a[i]); //processing loop for(i=1;i<5;i++) { j=i; do { if(a[j]<a[j-1]) { save=a[j]; a[j]=a[j-1]; a[j-1]=save; } j--; }while(j>0); } //output loop for(i=0;i<5;i++) printf("\n\t%d",a[i]); }

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