Members - Reputation: 112
Posted 28 April 2012 - 06:07 AM
The values of the combinations method used in the text are often displayed in the
form of a triangle using the following arrangement:
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.