So far I have whats below, i think my equation used is wrong in the program and i dont know how to fix it, it compiles fine, but when run it gives a result of 1.#INF instead of 3.14..... any help would be appreciated
Your formula for adding the fractions is incorrect.
each succeeding denominator is increased by 5,7,9.........and so on
so your formula needs to reflect that.[s][/s]
Oooops disregard my thread above........your x+= expression is correct
when i ran your code i got this:
/* To how many terms? 250
Estimated PI value to 250 terms: 3.13778/*