#include <stdio.h>
#include <conio.h>
voit main()
{
char code[4].title[20].author[25];
float price. price book tax vat;
clrscr();
vat =0.07;
printf ("enter code\n");
scanf("%s",&code);
printf ("enter title\n");
scanf("%s",&title);
printf ("enter author\n"); scanf("%s",&author);
printf ("enter price\n"); scanf("%s",&price book);
tax= price book "vat;
price= price book + tax;
printf ("code %s\n",code);
printf ("title %s\n",title);
printf ("author %s\n",author);
printf ("price %2f\n",price);
getch();
}
ช่วยดูหน่อยครับผิดตรงไหน
#include <conio.h>
voit main()
{
char code[4].title[20].author[25];
float price. price book tax vat;
clrscr();
vat =0.07;
printf ("enter code\n");
scanf("%s",&code);
printf ("enter title\n");
scanf("%s",&title);
printf ("enter author\n"); scanf("%s",&author);
printf ("enter price\n"); scanf("%s",&price book);
tax= price book "vat;
price= price book + tax;
printf ("code %s\n",code);
printf ("title %s\n",title);
printf ("author %s\n",author);
printf ("price %2f\n",price);
getch();
}