In PHP Loops are very useful in creating lists and tables. In this PHP exercise, you will use a loop to create a list of
Posted: Fri May 20, 2022 9:57 am
In PHP
Loops are very useful in creating lists and tables. In this PHP
exercise, you will use a loop to create a list of equations for
squares.
Using a for loop, write a script that will send to the browser a
list of squares for the numbers 1-12.
Use the format, "1 *
1 = 1, 2 * 2 = 4",
and be sure to include code to print each formula on a different
line.
SHOW THE CODE AND OUTPUT
Loops are very useful in creating lists and tables. In this PHP
exercise, you will use a loop to create a list of equations for
squares.
Using a for loop, write a script that will send to the browser a
list of squares for the numbers 1-12.
Use the format, "1 *
1 = 1, 2 * 2 = 4",
and be sure to include code to print each formula on a different
line.
SHOW THE CODE AND OUTPUT