online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
/*Ejercicios Propuesto 2.- Crea un programa en C++ donde el usuario ingrese 10 números, 5 para un array y 5 para otro array distinto. Mostrar los 10 números en pantalla mediante un solo array.*/ #include<iostream> using namespace std; int main(){ float arr3[10]={}; float arr1[5]={}; float arr2[5]={}; cout<<"Ingrese 10 numeros para mostrarlos en pantalla"<<endl; for(int i=0 ; i<=9 ; i++){ cout<<"Ingrese el numero "<<i+1<<" :"; if(i<=4){ cin>>arr1[i]; arr3[i]=arr1[i]; } if(i>=5){ cin>>arr2[i]; arr3[i]=arr2[i]; } } cout<<"Los numeros ingresados son: "<<endl; for(int i=0 ; i<=9 ; i++){ cout<<arr3[i]<<" "; } 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