write some code, and then ask us for help when u get stuck. read the sticky about homework.
infamous
Junior Poster in Training
77 posts since Mar 2004
Reputation Points: 47
Solved Threads: 2
Approximation value of pi is 3.466667.
Don't you mean ~3.1415 ... ??
cscgal
The Queen of DaniWeb
19,421 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
Welcome beginner,
There might be some errors.
Might? Did you run your own program and see what it outputs? (Hint: there are several errors in your get_pie() function involving data types.) Also, please use [ CODE ] tags (select your code after you paste it, and click the [ CODE ] button/icon at the top of the editor) so your program is more readable.
Did you have a specific question to ask? And in the future, please don't post into long-dead threads.
raptr_dflo
Practically a Master Poster
602 posts since Aug 2010
Reputation Points: 76
Solved Threads: 82