Hi mga paps, heto nanaman ako upang magpatulong sa mga pro users of c language jan, medyo confused pa po ako sa loops kaya sana matulungan nyo ko
I need po a loop na magtatanong if you want to process another that is answerable by "Y or y" and "N"/n"
Then pag ang ininput ng user is no,dapat mag didisplay ng total charge of the day(meaning naipon nya yung data ng mga charges) tas ididisplay din yung total transactions on that day
bali 'yung '5' sa TOTAL NO. OF TRANSACTION ang gamitin natin na variable counter, then ilagay mo sa array 'yung mga napiling item
C:
// pass var 5 to i , hindi nakahardcode
int i = 5; // palitan na lang 'yung 5 ng kung ano variable mo or do it directly sa for loop
for(int a = 1; a <= 5; a++) {
printf("%s\n", chosenItemName[a]);
}
Hi mga paps, heto nanaman ako upang magpatulong sa mga pro users of c language jan, medyo confused pa po ako sa loops kaya sana matulungan nyo ko
I need po a loop na magtatanong if you want to process another that is answerable by "Y or y" and "N"/n"
Then pag ang ininput ng user is no,dapat mag didisplay ng total charge of the day(meaning naipon nya yung data ng mga charges) tas ididisplay din yung total transactions on that day
So hindi sayo yang nasa attachment mo? kasi tama naman yung nasa attached mo na SS. If not yours, then read about program flow statements like if, ifelse, nested if, switch and goto statement. Makakatulong sayo yan.