#include <stdio.h>
int main() {
float mean;
int sum, i;
int n = 5;
int a[] = {2,6,7,4,9};
sum = 0;
for(i = 0; i < n; i++) {
sum+=a[i];
}
printf("Mean = %f ", sum/(float)n);
return 0;
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/tech/pnotes/265360.html