1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Sharp's value for Pi help

Discussion in 'C' started by hypee, Feb 5, 2007.

  1. hypee

    hypee New Member

    Feb 5, 2007
    Likes Received:
    Trophy Points:

    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.

Share This Page