online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> #include<stdlib.h> int EVEN(int); int main() { int i; int c, n; printf("random number in [10,100]\n"); for (c = 1; c <= 1; c++) { n = rand() % 100 + 1; printf("%d\n", n); } printf("Factors of %d are: ", n); for(i=1; i <= n; ++i) { if (n%i == 0 && EVEN(i)) { printf("%d ",i); } } return 0; } int EVEN(int n) { if (n%2 == 0){ //printf("even factors are:"); return 1; } 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