Average of marks stored in an array, say Marks[5]=[1,2,3,4,5], can be calculated by just adding up all the values and then dividing the sum by the total number of values. (e-g: ).
You are required to write a program that calculates the average of any n numbers . What is the average of marks stored in Marks
Be careful:
Average may be any real number, say 12.01 or 20.5 or 18.91.
You are required a rounded-off figure, say 12 or 20 or 19.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
No explanations have been posted yet. Check back later!