Algorithm for Pascal Triangle

Discussion in 'C Programming' started by dmp, Dec 10, 2008.

  1. dmp

    dmp Guest

    Can anybody help to develop the algorithm for pascal triangle in C
     
    dmp, Dec 10, 2008
    #1
    1. Advertising

  2. dmp

    user923005 Guest

    On Dec 9, 7:05 pm, dmp <> wrote:
    > Can anybody help to develop the algorithm for pascal triangle in C


    It's just a triangular table.
    Return the value from the table.
    The entries of the table can be calculated from an even simpler table
    of factorials as:
    http://britton.disted.camosun.bc.ca/pascal/pascal.html
     
    user923005, Dec 10, 2008
    #2
    1. Advertising

  3. dmp

    Guest

    On 10 Dec, 03:05, dmp <> wrote:
    > Can anybody help to develop the algorithm for pascal triangle in C


    you are confused. Algorithms are language independent. Do you know
    what
    Pascal's Triangle is, and how to calculate n+1th row given the nth
    row.
    If so then you know the algorithm and you just need to impleemtn it in
    C.
    Have a go at the problem and if you have diffilculties then post your
    code
    here. If you don't know the algorithm then post to a group that deals
    with
    algorithms. Eg. comp.programming
     
    , Dec 10, 2008
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. GUPTAJI

    PASCAL'S TRIANGLE

    GUPTAJI, Oct 5, 2006, in forum: C Programming
    Replies:
    25
    Views:
    903
    Default User
    Oct 6, 2006
  2. Aaron

    Pascal's Triangle

    Aaron, Dec 15, 2006, in forum: C Programming
    Replies:
    4
    Views:
    560
    Duncan Muirhead
    Dec 15, 2006
  3. J Ivan P Silvestre

    Triangle of Pascal

    J Ivan P Silvestre, Sep 8, 2008, in forum: ASP .Net
    Replies:
    0
    Views:
    330
    J Ivan P Silvestre
    Sep 8, 2008
  4. pradeep

    Pascal Triangle doubt - Help!

    pradeep, Mar 15, 2009, in forum: C Programming
    Replies:
    30
    Views:
    1,384
    Phil Carmody
    Mar 16, 2009
  5. LL
    Replies:
    9
    Views:
    541
Loading...

Share This Page