online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
int isPrime(int a){ int i; for(i=2;i<=a-1;i++){ if(a%i==0){ return(0); } } return 1; } main(){ int a; int a_p; printf(" Enter a number:"); scanf("%d", &a); a_p = isPrime(a); if (a_p==1){ printf("%d is prime",a); } else{ printf("%d is NOT a prime",a); } printf(" \nEnter another number:"); scanf("%d", &a); a_p = isPrime(a); if (a_p==1){ printf("%d is prime",a); } else{ printf("%d is NOT a prime",a); } }

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