online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> using namespace std; int main(){ int suma=0,n,i=0,max,min; do{ cout << "ingrese numero entero positivo. Si negativo termina: " << endl; cin >> n; if(i==0 && n>0){ max=min=suma=n; i=1; } if(n>0){ suma=suma+n; i=i+1; } if(n>=max && n>0){ max=n; } if(n<=min && n>0){ min=n; } } while(n > 0); if(i>0){ cout << "Promedio es: " << (float)suma/(float)i << endl; cout << "Maximo es: " << max << endl; cout << "Minimo es: " << min << endl; }else{ cout << "No hay respuesta" << endl; } 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