Professional Documents
Culture Documents
Include
Include
h>
int main()
{
int first, x, quantity, subtotal;
int item_code[4]={001,002,003,004};
char *item_name[4]={"Iced Tea","Pizza","Hamburger","French Fries"};
float item_price[4]={15.00,250.00,125.00,60.00};
if(first==1)
for(x=0;x<=4;x++)
{
printf("ITEM CODE:");
scanf("%d",&item_code[x]);
}
for(x=0;x<=4;x++)
{
printf("ITEM NAME:%s\n",item_name[x]);
printf("QUANTITY:");
scanf("%d",&quantity);
(subtotal=quantity*item_price[x]);
printf("SUBTOTAL= %d\n",subtotal);
}
else
{
printf("Goodbye! Please come again!");
}
return 0;
}
A. Interpretasyon
1. Paano nabuo ang kwento?
2. Ipaliwanag ang mga pahiwatig.