C++ Program to Find Sum and Average of N Numbers Using For Loopdownload C++ source code file
This program gives the sum of numbers given by the user, and then average of the numbers.
we need to declare an array for storing numbers , in ordered sequence, so that they can be used anytime in the program.
'a[n]' is called the array 'a' of n elements , this is one dimensional array.
'a[m][n]' is two dimensional array, it can store 'm*n* elements.
This program gives the sum of numbers given by the user, and then average of the numbers.
we need to declare an array for storing numbers , in ordered sequence, so that they can be used anytime in the program.
'a[n]' is called the array 'a' of n elements , this is one dimensional array.
'a[m][n]' is two dimensional array, it can store 'm*n* elements.
Comments