Answer:
Following are the JavaScript program
< html >
< body >
< script >
var k,t; // variable declaration
for (k = 1; i < 6; k++) // iterating the loop
{
t=k*k*k;// find the cube of number
document.write(k); // display the cube root
document.write(" < / br > " ); // moves to the next line
}
< / script >
< / body >
< / html >
Output:
1
8
27
64
125
Explanation: