0
Loops or if?
read data for 3 people. name, speed, status (safe,inj,dead) then display injured cases, avg speed of dead and max speed of safe
2 Answers
0
not understand your question , u display on which bases?
0
Use a loop for reading each person individually. Then use if to separate cases (decide if a person must be included in the injured counting, decide if a person must be considered to take max speed of safe cases, decide if a person must be considered in averaging speeds of dead ones). The rest is math