PDA

View Full Version : turbo c .computing average from set of numbers help


pew
10-09-2009, 07:26 PM
inputs any set integer from 1 to 3999 and separated by a comma then separates it then gets its average.

Example:
input: 1,2,3,8,4,6

compute its average
1+2+3+8+4+6=24
24/6=4

Output:4[/I][/I]

...pls help

WA
10-09-2009, 08:58 PM
This looks like a homework assignment. We cannot simply do the work for you- this is called cheating. Please refine your question to a specific hurdle or issue you're having.

pew
10-10-2009, 07:00 AM
Help me how to separate the numbers from the commas.. and ill do the rest pls

oesxyl
10-10-2009, 11:53 AM
Help me how to separate the numbers from the commas.. and ill do the rest pls

http://www.opengroup.org/onlinepubs/000095399/functions/strtok.html

best regards