C and C++

Moderators: None (Apply to moderate this forum)
Number of threads: 28629
Number of posts: 94611

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
loop for finding largest average Posted by flyaway3 on 11 May 2006 at 9:09 PM
Just wondering how you would create a loop that works out the averages from about 20 scores in a file and then outputs the largets one.
So far I have tried using a while loop with a continue statement but I cant get it to work.
Any ideas?
Thanks
Report
Re: loop for finding largest average Posted by tsagld on 12 May 2006 at 1:08 AM
: Just wondering how you would create a loop that works out the averages from about 20 scores in a file and then outputs the largets one.
: So far I have tried using a while loop with a continue statement but I cant get it to work.
: Any ideas?
: Thanks
:
What exactly do you mean? For n numbers, there's only one average. What do you mean by the 'largest average'?
Post your code so far and we'll try to help.

Greets,
Eric Goldstein
http://www.gvh-maatwerk.nl





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.