Search:

Type: Posts; User: thedman3

Search: Search took 0.33 seconds.

  1. Replies
    5
    Views
    2,363

    Re: Pascal's Triangle Program

    I figured it out. When the method Factorial is run just once, the correct value is attained. Because Factorial returns the value of finFact, when Factorial is run again it keeps the previous value of...
  2. Replies
    5
    Views
    2,363

    Re: Pascal's Triangle Program

    Thank you for the small tips.
    This program is intended to create a Pascal's triangle, for example:
    1
    1 1
    1 2 1
    1 3 3 1
    1 4 6 4 1
    ... etc

    That is not the output that is produced. Instead, if...
  3. Replies
    5
    Views
    2,363

    Pascal's Triangle Program

    I wrote a pascal's triangle program with an imbedded 'for' loop and a Factorial class that computes the factorial of a number. When it gets to the third line of the triangle the problems arise. If...
Results 1 to 3 of 3