2
I’m having a hard time with this exercise:
"Do a program that asks n people your age, at the end the program should check if the average age of the class varies between 0 and 25, 26 and 60 and above 60; and then, tell if the class is "young", "adult" or "elderly", according to the calculated average. The program must finish when typed -1."
I don’t know how to ask for the age of n people. How would I do that ?
With the function
input
is a simple way.– Woss