- #include <stdio.h>
#include <conio.h>
void main ()
{
float a01,a02,a03,a04;
printf("\tenter price of sanwich,\n");
scanf("%f",&a01);
printf("\tenter price of sanwich tuna,\n");
scanf("%f",&a02);
printf("\tenter price of pisa,\n");
... scanf("%f",&a03);
printf("\tenter price of unif,\n");
scanf("%f",&a04);
clrscr();
printf("\t cp all, kakakaka(8072)\n");
printf("\ttax#3101578522(vat include)vat 06155\n");
printf("\t pos# :eo520301700176\n");
printf("\t receipt/tax invoice\n");
printf("\t-----------------------------\n"); ดูเพิ่มเติม
printf("\tsanwich\t\t%.2f\tbath\n",a01);
printf("\tsanwichtuna\t%.2f\tbath\n",a02);
printf("\tpisa\t\t%.2f\tbath\n",a03);
printf("\tunif\t\t%.2f\tbath\n",a04);
printf("\ttotal\t\t%.f\tbath",a01+a02+a03+a04);
getch ();
}
โปรแกรมคิดบิล
วันเสาร์ที่ 23 มิถุนายน พ.ศ. 2555
เกงป่าว
สมัครสมาชิก:
ส่งความคิดเห็น (Atom)
ไม่มีความคิดเห็น:
แสดงความคิดเห็น