Code:double avg(int score[][], int n){ int i, j; float total = 0; // this MUST be float! think about this... for (i=0; i<n; i++){ for(j=0; j<n; j++){ total = total + score[i][j];
Code:double avg(int score[][], int n){ int i, j; float total = 0; // this MUST be float! think about this... for (i=0; i<n; i++){ for(j=0; j<n; j++){ total = total + score[i][j];
instead of avg write average....my sorry wrong name...!
Thank you for all of your help.