• Advertisement
Sign in to follow this  

Pascal’s Triangle

This topic is 2182 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi. How to make this program? Using eclipse. I can't figure out how to do it...

The values of the combinations method used in the text are often displayed in the
form of a triangle using the following arrangement:
C(1,0) C(1,1)
C(2,0) C(2,1) C(2,2)
C(3,0) C(3,1) C(3,2) C(3,3)
C(4,0) C(4,1) C(4,2) C(4,3) C(4,4)
and so on. This figure is called Pascal’s Triangle after the seventeenth-century
French mathematician Blaise Pascal, who described it, even though it was known by
Chinese mathematicians over 2000 years ago. Pascal’s Triangle has the interesting
property that every interior entry is the sum of the two entries above it.
132 The Art and Science of Java
Write a Java GraphicsProgram that uses GLabel objects to display the first eight
rows of Pascal’s Triangle.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement