Computer Science, asked by tezigem, 3 days ago

2. Write a Program to find the average of n numbers using
arrays.

Answers

Answered by ItzTareCutiePie
0

Answer:

Write a Program in c to find the mean of n numbers using array

int a[25], n, i ; float mean = 0, sum = 0 ; printf(" Enter the Numbers of terms: ") ; printf("\n Enter the Numbers : \n") ; {

} { sum = sum + a[i] ; avg = sum / n ;

} printf("\n Mean of entered Numbers are : %f ", mean) ;

Answered by Anonymous
2

Answer:

Write a Program in c to find the mean of n numbers using array

int a[25], n, i ; float mean = 0, sum = 0 ; printf(" Enter the Numbers of terms: ") ; printf("\n Enter the Numbers : \n") ; {

} { sum = sum + a[i] ; avg = sum / n ;

} printf("\n Mean of entered Numbers are : %f ", mean) ;

Similar questions