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
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
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am