stuct book
{
char title[20];
char author[20];
int price;
};
void amin()
{
struct book b;
clrscr();
printf("Enter the title of the book");
scanf("%s",b.title);
printf("\nEnter the author of the book\t");
scanf("%s,b.author);
printf("\nEnter the price of book\t");
scanf("5d",&b.price);
printf("\nThe details are\n");
printf("Title\\tAuthor\tPrice\n");
printf("%s\t%s\t%d",b.title,b.author,b.price);
getch();
}
{
char title[20];
char author[20];
int price;
};
void amin()
{
struct book b;
clrscr();
printf("Enter the title of the book");
scanf("%s",b.title);
printf("\nEnter the author of the book\t");
scanf("%s,b.author);
printf("\nEnter the price of book\t");
scanf("5d",&b.price);
printf("\nThe details are\n");
printf("Title\\tAuthor\tPrice\n");
printf("%s\t%s\t%d",b.title,b.author,b.price);
getch();
}
No comments:
Post a Comment