Upper
for ( var j = 0 ; j < n ; j ++ ) document . write ( setw ( 4 ) + upper [ i ] [ j ] + " " ) ; document . write ( " " ) ; } } function setw ( noOfSpace ) { var s = " " ; for ( i = 0 ; i < noOfSpace ; i ++ ) s += " " ; return s ; }