Task
Accept 5 numbers from a user and output the average.
(Files used in solution can be found here)
Solution using a for loop

Solution using a while loop
Note: The task requires bounded iteration, a while loop is not ideal in principle however it can be done.

© 2022 Vedesh Kungebeharry. All rights reserved.