Search:

Type: Posts; User: pbrockway2

Search: Search took 0.13 seconds.

  1. Re: Pythagorean Triples Help- I'm a Beginner :/

    You're welcome. (I guess you read point (2) in #5!) The format strings are powerful but a bit cryptic, so you master them a bit at a time.
  2. Re: Pythagorean Triples Help- I'm a Beginner :/

    The second of the four examples was designed to illustrate precisely this. It generates two right aligned columns. And it shouldn't be too difficult to come up with something that attempts to...
  3. Re: Pythagorean Triples Help- I'm a Beginner :/

    I'm glad you've got it sorted out. Don't forget to let them know at DevShed.

    The "%d" business is used with the String format() method and with the printf() of PrintStream and elsewhere. It is...
  4. Re: Pythagorean Triples Help- I'm a Beginner :/

    Within the inner most loop you use the condition:



    sideSum = ((side1 + 1) * (side1 + 1)) + ((side2 + 1) * (side2 + 1));
    if(sideSum == (hypot + 1) * (hypot + 1))
    {
    // report...
Results 1 to 4 of 4