#include<stdio.h>
void main()
{ struct{int id;
char title[20];
char author[20];
int year;
}book;
printf("Id");
scanf("%d",&book.id);
printf("Title:");
fflush(stdin);
gets(book.title);
puts("Author");
gets(book.author);
puts("Year");
scanf("%d",&book.year);
puts("Id\tTitle\tAuthor\tYear");
printf("%d\t",book.id);
printf("%s\t",book.title);
printf("%s\t",book.author);
printf("%d",book.year);
}
Blogger Comment
Facebook Comment