hi im stuck.
lets say i have
int count =6;
and make and array of
float n[6]={1,2,3,4,5,6},total,average;
and i want it to add all the numbers up
How would i do this in a loop?
NOT this way
n[0]+n[1]+n[2]+.... then /count
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 7 of 7
Thread: getting average!!Threaded View
|
Click Here to Expand Forum to Full Width |