WAP to accept 10 numbers in an array then calculate the total and average of the same
Input: 1 2 3 4 5 6 7 8 9 10
Output:
Total=1+2+3+4+5+6+7+8+9+10=55
Average=55/10=5.5
Published By : Sunita Chhetry
WAP to accept 10 numbers in an array then calculate the total and average of the same
Input: 1 2 3 4 5 6 7 8 9 10
Output:
Total=1+2+3+4+5+6+7+8+9+10=55
Average=55/10=5.5