#include <stdio.h>
struct books
{
char titel[50];
char auther[50];
float price;
int isbn;
} book_info[5];
int main()
{
int i;
for (i=0; i<5; i++)
{
printf("title: ");
gets(book_info[i].titel);
putchar('\n');
printf("auther: ");
gets(book_info[i].auther);
putchar('\n');
printf("price: ");
scanf("%f", &book_info[i].price);
putchar('\n');
printf("ISBN: ");
scanf("%d", &book_info[i].isbn);
putchar('\n');
}
for (i=0; i<5; i++)
{
puts(book_info[i].titel);
puts(book_info[i].auther);
printf(" Price is %.3f and ISBN is %d", book_info[i].price , book_info[i].isbn);
}
return 0;
}