Average is the Same as Mean Average and mean are measures of central tendency. 2f is used for displaying output upto two decimal places printfAverage of d and d is. Divide the sum by 2 to get the average.
In statistics the mean of a set of numbers is the average value of those numbers.
We can generalize the concept of average with the formula below. The numbers entered by the user are passed to this function during the function call. The given numbers70 90 step 2. Sum 70 90 160 step 3.