Im doing the project at the end of the arrays and loops section, i want to know what is wrong with my code, please help. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Im doing the project at the end of the arrays and loops section, i want to know what is wrong with my code, please help.

double TicketTotal = 10 * ages[5] * (( fmin(100,200) )/100); cout << TicketTotal; i know my equation is wrong, im planning on fixing that part, but i dont know why this doesn't run, and i would like to.

17th May 2021, 8:51 PM
shane
1 Answer
+ 1
ages[5] does not exist, ages[4] is the last element of the array
17th May 2021, 9:57 PM
Michal Doruch