View Single Post
Old Jul 5th, 2007, 8:20 PM   #5
357mag
Hobbyist Programmer
 
Join Date: Mar 2005
Posts: 148
Rep Power: 4 357mag is on a distinguished road
Well here is what I did. I wanted the numbers to print under the centers of the words Value, Square, and Cube, instead of at the left:

System.out.println( "  " + n + "\t" + "  " + square(n) + "\t" + " " + cube(n) );

But when I look at the headings Value, Square, and Cube, the word Cube is spaced closer to the word Square, than Square is to Value. I don't know why that is. I want it to look evenly spaced between the words:

Value     Square     Cube

But instead it's looking more like this:
Value     Square   Cube

I got to try and fix it so it looks evenly spaced.
357mag is offline   Reply With Quote