for(var i = 1; i <= 10; i++) document.write( 'Число ' + i + ' <br> ' ); 

    2 answers 2

    Is it a table? Then so:

     document.write( '<table>' ); for(var i = 1; i <= 10; i++) { document.write( '<tr><td>Число ' + i*i*i + '</td></tr>' ); } document.write( '</table>' ); 

    Looks like some kind of homework.

    • yes it dz, the basics of programming, thanks a lot - Vetal Dudin
    • @VetalDudin if the problem is solved do not forget to mark the correct answer :) - LeonidMew

    The cube of the number a is the product of three factors, each of which is a. Cube of the number a denote a³. They read: “a in the cube” or “a in the third degree”. ... Thus, in order to find a cube of a number (they also say “build a number into a cube”), it is necessary to take this number three times and calculate the product.

     for(var i = 1; i <= 10; i++) document.write( 'Число ' + i*i*i + ' <br> ' ); 
    • thanks a lot - Vetal Dudin