Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   Sharp's value for Pi help (http://www.go4expert.com/forums/sharps-value-pi-help-t2854/)

hypee 5Feb2007 17:01

Sharp's value for Pi help

Basically i have to write a program which computes and prints Sharp’s approximation of pi using a number of terms to be input from the keyboard (via scanf ). The program must also print the difference between the approximation and the value of pi stored in the macro constant M_PI, defined in <math.h>.
Im totally new to C programming and was wondering if anyone could push me in the right direction.

All times are GMT +5.5. The time now is 03:51.