online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> #include <math.h> int sqrtFunc(int n); int sqrtFunc(int n){ int i; if(n <= 1) return 0; for(i = 2; i <= sqrt(n); ++i){ if(n % i == 0) return 0; } return 1; } int main() { int n = 0; printf("정수를 입력하세요: "); scanf("%d", &n); if(sqrtFunc(n) == 1){ printf("%d는 소수입니다.", n); }else{ printf("%d는 소수가 아닙니다.", n); } 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