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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 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

Post by answerhappygod »

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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply