Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > Algorithm for Pascal Triangle

Reply
Thread Tools

Algorithm for Pascal Triangle

 
 
dmp
Guest
Posts: n/a
 
      12-10-2008
Can anybody help to develop the algorithm for pascal triangle in C
 
Reply With Quote
 
 
 
 
user923005
Guest
Posts: n/a
 
      12-10-2008
On Dec 9, 7:05*pm, dmp <(E-Mail Removed)> 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
 
Reply With Quote
 
 
 
 
nick_keighley_nospam@hotmail.com
Guest
Posts: n/a
 
      12-10-2008
On 10 Dec, 03:05, dmp <(E-Mail Removed)> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pascal's triangle code - Please help! LL C Programming 9 03-30-2009 12:03 PM
Pascal Triangle doubt - Help! pradeep C Programming 30 03-16-2009 09:27 PM
Triangle of Pascal J Ivan P Silvestre ASP .Net 0 09-08-2008 06:07 PM
Pascal's Triangle Aaron C Programming 4 12-15-2006 11:02 AM
PASCAL'S TRIANGLE GUPTAJI C Programming 25 10-06-2006 05:39 PM



Advertisments