/*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(){
int list1[5] = {}, list2[5] = {}, list3[10] = {};
for (int i = 0; i<=4; i++){
cout<<"Ingresa el "<<i+1<<" numero: "<<endl;
cin>>list1[i];
}
for (int i = 0; i<= 4; i++){
cout<<"Ingresa el "<<i+6<<" numero"<<endl;
cin>>list2[i];
}
cout<<endl;
for(int i = 0; i<= 4; i++){
list3[i] = list1[i];
}
for(int i= 0; i<=4; i++){
list3[i+5] = list2[i];
}
for(int i = 0; i<=9; i++)
cout<<list3[i]<<endl;
}