Asked by kenge
write a pseudo code which prints a list of all students over the age of 20 in a class. the input record contains age,name of students assume a sentine value of 99
Answers
Answered by
Steve
for each s in students
if s.age == 99 then exit
if s.age <= 20 then continue
print s.name, s.age
next s
if s.age == 99 then exit
if s.age <= 20 then continue
print s.name, s.age
next s
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.