online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include<stdio.h> #include<conio.h> void main() { int num,i; long fact=1; clrscr(); printf("\n Enter Any Number: "); scanf("%d",&num); if(num<=0) printf("\n Invalid Number! "); else { fact=num; i=1; while(i<num) { fact=fact*i; i++; } printf("\n Factorial = %ld",fact); } getch(); }

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