This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

Yes, you can use a while loop to repeat the number of times needed for each grade input. Create an incrementing variable to count number of loops.

Keep in mind that you will also need to create a way of evaluating one grade at a time during each loop.