So what isn't working now?
The counting?
The average?
The output stream choice?
Here's a cookie
> float a,i;
What's i initialised to?
Then read the manual page on how to use printf, and what type %d is for.
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Offline 7,164 posts
since Dec 2005