ok,
i wrote a label for statement that on row 1 has "*" and nine spaces.
row 2 has 2 "*" and 8 spaces and so on...... till my tenth row has ten "8"
now i need to do the opposite;
row 1; 9 spaces and 1 *
row 2; 8 spaces and 2 * and so on......
row 10 has 10 *
here is what i have so far. the first nextRow Label is good but the second one isn't.
nextRow: // target label of continue statement
for ( var row = 1; row <= 10; ++row )
{
document.writeln( "<br />" );
for ( var column = 10; column >= 1; --column )
{
if ( column < row )
continue nextRow; // next iteration of labeled loop
document.write( "* " );
} //end for
} //end for
nextRow: // target label of continue statement
for ( var row = 1; row <= 10; ++row )
{
document.writeln( "<br />" );
for ( var column = -1; column <= -10; ++column )
{
if ( column < row )
continue nextRow; // next iteration of labeled loop
document.write( "* " );
} //end for
} //end for