#include <iostream>
using namespace std;
struct car
{
char product[20];
int year;
};
int main()
{
cout<<"How many cars do you have?"<<endl;
int n;
cin>>n;
car *obj=new car[n];
int i=0;
for(i=0;i<n;i++)
{
cout<<"Car #"<<(i+1)<<":/n";
cout<<"Please enter the make: ";
cin>>obj[i].product;
cout<<"Please enter the year made: ";
cin>>(obj[i].year);
}
cout<<"Here is your collection: "<<endl;
for(i=0;i<n;i++)
cout<<(obj[i].year)<<" "<<(obj[i].product)<<endl;
return 0;
}