Finding the Average of 5 numbers using Looping

Task

Accept 5 numbers from a user and output the average.

(Files used in solution can be found here)

Solution using a for loop

01. Average of 5 Numbers (using For loop) - Start

Solution using a while loop

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

02. Average of 5 Numbers (using while loop) - Start

© 2022  Vedesh Kungebeharry. All rights reserved. 

Leave a comment