online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
// created by www.beginnersbook.in // to edit your code click on "fork this" button #include<stdio.h> int main() { int number = 0; printf("enter a number: "); scanf("%d",&number); if(number % 2 == 0) //if(condition) { printf("%d is even number",number); //block 1 } else { printf("%d is odd number",number); //block 2 } 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