Thread: C newb really could use your help!

  1. #16
    Registered User
    Join Date
    Oct 2010
    Posts
    36
    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];

  2. #17
    Registered User
    Join Date
    Aug 2010
    Posts
    230
    instead of avg write average....my sorry wrong name...!

  3. #18
    Registered User
    Join Date
    Oct 2010
    Posts
    36
    Thank you for all of your help.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Utter newb?: Program crashes after input
    By deductible in forum C++ Programming
    Replies: 5
    Last Post: 12-13-2008, 10:27 PM
  2. newb question
    By C_ntua in forum C++ Programming
    Replies: 3
    Last Post: 09-25-2008, 09:44 AM
  3. Newb Question Character Counting
    By Wilder in forum C Programming
    Replies: 13
    Last Post: 06-22-2008, 11:37 PM
  4. Newb C++ Programmer
    By Philandrew in forum C++ Programming
    Replies: 8
    Last Post: 10-19-2004, 08:44 PM
  5. Detective 1: Who do you think killed him? Detective 2: google it newb.
    By Jeremy G in forum A Brief History of Cprogramming.com
    Replies: 14
    Last Post: 10-09-2004, 03:35 AM