online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
/****************************************************************************** Welcome to GDB Online. GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl, C#, OCaml, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog. Code, Compile, Run and Debug online from anywhere in world. *******************************************************************************/ #include <stdio.h> #include <math.h> int isPrime(int num); int isPrime(int num){ if(num <= 1)return 0; for(int i=2;i <=sqrt(num); ++i){ if(num%i ==0 )return 0; } return 1; } int main() { int num; printf("ģ •ģˆ˜ė„¼ ģž…ė „ķ•˜ģ‹œģ˜¤ : "); scanf("%d\n", &num); if(isPrime(num)){ printf("%dėŠ” ģ†Œģˆ˜ģž…ė‹ˆė‹¤.\n",num); } else{ printf("%dėŠ” ģ†Œģˆ˜ź°€ ģ•„ė‹™ė‹ˆė‹¤",num); } return 0; }

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