By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,510 Members | 1,821 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,510 IT Pros & Developers. It's quick & easy.

array

P: 1
hai tell me how to use 2d matrix in array and give me the solving techniques of pascal triangle
Jun 17 '07 #1
Share this Question
Share on Google+
2 Replies


P: 55
Could you please post the pascal triangle code ?

Thanks for your co-operation.
Jun 17 '07 #2

Expert 10K+
P: 11,448
hai tell me how to use 2d matrix in array and give me the solving techniques of pascal triangle
I'm afraid I don't understand your question: do you want to represent a two
dimensional matrix by a one dimensional array?

Generating the n-th row of Pascal's triangle is easy if you have the (n-1)-st row
already: simply add all pairs from right to left and add a 1 to the right.

kind regards,

Jos
Jun 17 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.