I need to write a code that uses a "while" statement to prompt the user for a number and then creates a table with one column 1-to the number they chose and another column of the squares of each number. Ex. 1 1
2 4
3 9
Then I need to write another code that will loop through and change the background color from white to yellow.
All this will be done in HTML.
Help would be greatly appreciated.
2 4
3 9
Then I need to write another code that will loop through and change the background color from white to yellow.
All this will be done in HTML.
Help would be greatly appreciated.