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.
Type: Posts; User: pbrockway2
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.
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...
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...
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...