online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <stdio.h> void main() { int no, i, f; printf("Enter any number: "); scanf("%d", & no); f = 0; i = 2; while (i <= no / 2) { if (no % i == 0) { f = 1; break; } i++; } if (f == 0) printf(" %d is Prime Number", no); else printf("%d Not Prime Number", no); }

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