online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> using namespace std; int main() { int clave=0; const int tamano=15; int arreglo[]={25, 17, 13, 16, 41, 32, 12, 115, 95, 84, 54, 63, 78, 21, 10}; //MOSTRAR ARREGLO cout<<"Elemenetos del arreglo: "<<endl; for(int i=0; i<tamano; i++){ cout<<"arreglo["<<i<<"]="<<arreglo[i]<<endl; } cout<<"Indique un valor a buscar y se le devolverá el índice: "; cin>>clave; //BUSCAR for(int i=0; i<tamano; i++){ if(arreglo[i] == clave) cout<<"Su valor se encuentra en arreglo["<<i<<"]"<<endl; } cout<<"Fin del programa"<<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