online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> void main() { int n, i, j, ocno=0,dn; printf("\n\nConvert Decimal to Octal:\n "); printf("-------------------------\n"); printf("Enter a number to convert : "); scanf("%d",&n); dn=n; i=1; for(j=n;j>0;j=j/8) { ocno=ocno+(j % 8)*i; i=i*10; n=n/8; } printf("\nThe Octal of %d is %d.\n\n",dn,ocno); }

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