#include <iostream>
#include <string>
using namespace std;
int main(){
string titulos[5];
string autores[5];
cout<<"Por favor ingrese la siguiente informacion de los libros: \n";
for (int i=0; i<5; i++)
{
cout<<"\n********LIBRO " + 1 <<"*******\n";
cout<<"TITULO=> ";
cin>>titulos[i];
cout<<"AUTOR=> ";
cin >> autores[i];
}
for (int i=0; i < 5; i++)
{
cout << "\n******* LIBRO NUMERO "<<i+1<< "********\nTITULO\t=>"<<titulos[i]<<"<=\nAUTOR\t=>"<<autores[i]<<"<=";
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: