how to average the whole column in an array
how to average the whole column in an array
err..... what? Try stating your question again, posting some sample code you're having trouble with.
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
Use the same algorithm you would to find the average of anything. Sum up everything in the "column" and then divide by the number elements in the "column".
"Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
-Christopher Hitchens