Sie sind auf Seite 1von 1

#include<stdio.

h>
main()
{
struct book
{
char name;
float price;
int page;
};
struct book b[5];
int i;
for(i=0;i<=4;i++)
{
printf("\nenter the name price and page:");
scanf("%c%f%d",&b[i].name,&b[i].price,&b[i].page);
}
for(i=0;i<=4;i++)
{
printf("\nname=%c price=%f page=%d",b[i].name,b[i].price,b[i].page);
}
}

Das könnte Ihnen auch gefallen