View Full Version : turbo c .computing average from set of numbers help
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
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.
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
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.