Sign in to follow this  
Tadas Talalas

Pascal’s Triangle

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(0,0)
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this