Stuff
public text v1 · immutable#include <stdio.h>
void main()
{
struct book
{
char name[25];
float price;
int page;
}b1;
int i;
for(i=0;i<3;i++)
{
printf("\nEnter the name of the book: ");
fgets(b1.name,sizeof(b1.name), stdin);
printf("\nEnter the price and pages : ");
scanf("%f %d", &b1.price, &b1.page);
printf("\nAnd this is what you entere");
printf("%s %.1f %d", b1.name, b1.price, b1.page);
}
fgetc(stdin);
}