hi everyone...hope somebody can help me on this.

i'm suppose to find the average(mean) of 4 number entered.

i have to use array...thax.

Code:void mean_matrix() { int iArrayFirst[4]; int i; int mean; int total; total=0; for(i=0;i<4;i++) { printf("enter value:"); scanf("%d", &iArrayFirst[i]); } printf("\n"); } for(i=0;i<4;i++) total=total + i; mean=total/4; } } } printf("the mean is %d", mean); }