I've already told you:
C
doesn't like a casual approach to its syntax, you must be exact. Try:
#include <stdio.h>
struct book
{
char Name[30];
char Author[30] ;
char Isbn[30];
float Price;
};
int main()
{
struct book b;
printf(" Enter the book name:"); fgets(b.Name, 30, stdin);
printf("Enter the author name:\n");
fgets(b.Author, 30, stdin);
printf("Enter the ISBN code\n:");
fgets(b.Isbn, 30, stdin);
printf("Enter the Price:");
scanf("%f", &b.Price);
printf("The Details of the book is:\n\n"); printf("Book name is %s:", b.Name);
printf("Author name is:%s", b.Author);
printf("ISBN code is:%s", b.Isbn); printf("book Price is: %0.2f\n", b.Price);
return 0;
}