online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
/* 3.- Crea un programa en C++ donde el usuario ingrese 5 números, después estos números se debe de copiar a otro array multiplicados por 2 y muestre el segundo array. */ #include<iostream> using namespace std; int main(){ int i, list[5] = {}, list2 [5] = {}; for( i = 0; i <=4 ; i++ ){ cout<<"Ingresa el "<<i+1<<" numero: "; cin>>list[i]; } for ( i = 0; i<=4; i++ ){ list2[i] = list[i] * 2; } for( i = 0; i<=4; i++){ cout<<list2[i]<<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