Sharp's value for Pi help

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

  1. hypee

    hypee New Member

    Joined:
    Feb 5, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hi,

    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice