Question: I'm having trouble trying to finish my code for this lab. I've tried multiple ways to figure it out but I get a syntax error
I'm having trouble trying to finish my code for this lab. I've tried multiple ways to figure it out but I get a syntax error instead. This is the code that I have so far and it works:
html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> The Even Numbers between 1-100: The Odd Numbers between 1-100:
"; $inc = $inc + 2;} echo " "; echo "
"; $count = $count + 2;} ?>
The line in the instructions that I cannot figure out is:
Give a line break every 10 numbers displayed on the screen.
My teacher told me to try using a count variable with either a
or , but I can't figure it out. I thought maybe something like $count += 10 / $inc += 10, but the program doesn't seem to like that no matter where I put them... Right now, the numbers are displaying with 1 number on each line... So, how can I solve my line break dilemma?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
