Use a FOR loop to display the first n natural numbers and their sum and average.
e.g. User enters 4
Natural Numbers = 1,2,3,4 – Average=2.5 Sum=10
Use a FOR loop to display the first n natural numbers and their sum and average.
e.g. User enters 4
Natural Numbers = 1,2,3,4 – Average=2.5 Sum=10