#include <iostream>
using namespace std;
// A structure for book
struct Book {
char name[100];
int price;
int ISBN;
};
int main() {
Book book;
cout << "Enter name of book\n";
cin.getline(book.name, 100);
cout << "Enter price of employee\n";
cin >> book.price;
cout << "Enter ISBN code\n";
cin >> book.ISBN;
// Printing Book details
cout << "\n*** Book Details ***" << endl;
cout << "Name : " << book.name << endl;
cout << "Price : " << book.price << endl;
cout << "ISBN Code : " << book.ISBN << endl;
return 0;
}
Comments
Leave a comment