online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
main(){ int a; int i; printf(" Enter a number:"); scanf("%d", &a); for(i=2;i<=a-1;i++){ if(a%i==0){ printf("NOT PRIME, divisible by %d", i); exit(0); } } printf("PRIME"); }

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