#include using namespace std; struct books { string name; string author; int year; }; struct shop { string name; string author; int year; }; int main() { struct books library_book; struct shop shop_book; printf("Enter name of the book:"); scanf("%s", &library_book.name); printf("Enter author of the book:"); scanf("%s", &library_book.author); printf("Enter year of the book:"); scanf("%i", &library_book.year); printf("Library book:\nBook name: %s\n", library_book.name); printf("Book author: %s\n", library_book.author); printf("Book year: %i\n", library_book.year); shop_book.name = library_book.name; shop_book.author = library_book.author; shop_book.year = library_book.year; printf("Shop book:\nBook name: %s\n", shop_book.name); printf("Book author: %s\n", shop_book.author); printf("Book year: %i\n", shop_book.year); return 0; }