#include #include using namespace std; struct book { char name[100]; int year; } books[100]; int main() { int dimension; printf("Enter the dimension of books array: "); cin >> dimension; string query; for (int i = 0; i < dimension; ++i) { cout << "Enter name of the book" << endl; cin >> books[i].name; cout << "Enter year of the book" << endl; cin >> books[i].year; } cout << "Entered array:" << endl; for (int i = 0; i < dimension; ++i) { cout << i << " - " << books[i].name << " - " << books[i].year << endl; } for(int i = dimension; i >= 0; --i){ books[i + 1] = books[i]; } cout << "Enter name of the book" << endl; cin >> books[0].name; cout << "Enter year of the book" << endl; cin >> books[0].year; cout << "Entered array:" << endl; for (int i = 0; i < dimension + 1; ++i) { cout << i << " - " << books[i].name << " - " << books[i].year << endl; } }