online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> int main() { enum { N = 3 }; int numbers[N]; printf("Enter %d numbers:\n", N); for (int i = 0; i < N; i++) scanf("%d", &numbers[i]); char all_equal = 1; int max = numbers[0]; for (int i = 1; i < N; i++) { all_equal = all_equal && numbers[i] == max; if (numbers[i] > max) max = numbers[i]; } if (all_equal) printf("All numbers are equal.\n"); else printf("%d is the greatest among the numbers entered.\n", max); }

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