online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <stdio.h> int main () { int i, num, contpar = 0, contimpar = 0, contpos = 0, contneg = 0; for (i = 1; i <= 5; i++) { scanf ("%d", &num); if (num % 2 == 0) { ++contpar; } else { ++contimpar; } if (num >= 0) { ++contpos; } else { ++contneg; } } printf ("%d valor(es) par(es)\n", contpar); printf ("%d valor(es) impar(es)\n", contimpar); printf ("%d valor(es) positivo(s)\n", contpos); printf ("%d valor(es) negativo(s)\n", contneg); 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