Google+

Saturday, July 3, 2010

Pascal Triangle in C


Pascal triangle is a like a simple diagram that contain some rules and logic. It's figure are shown above. 


  • first element of all row is 1.
  • last element of all row is same as starting element.
  • second last element of all row is same as second element and so on.
  • a[2,1]=a[1,0]+a[1,1]; for second row second element.
  • a[3,1]=a[2,0]+a[2,1]; for third row second element,a[3,2]=a[2,1]+a[2,2]; for third row third element and so on.

If you want it's program in any language then reply me.


2 comments:

  1. These is a good...

    ReplyDelete
  2. Thanks for sharing the Information about Programming and Oracle. This blog explains very elobrately of Pascal triangle through a diagram with some rules and logic.

    sap upgrade tool

    ReplyDelete