display elements of tape
document . write ( " " + ( i + 1 ) + " " ) ; for ( j = 0 ; j < n ; j ++ ) { if ( v [ i ] [ j ] != 0 ) { document . write ( v [ i ] [ j ] + " " ) ; } else { break ; } } document . write ( " " ) ;