Question: In this exercise, you will write a while statement that displays all odd numbers between 1 and 100 on the screen. Complete the steps below:
In this exercise, you will write a while statement that displays all odd numbers between 1 and 100 on the screen. Complete the steps below: 1. Open Notepad++ and create a new document. 2. Type the declaration, element, header information, and
element. Use the strict DTD and Odd Numbers as the content of theThis is what I have done so far, when I run it in my browser it shows what I typed and not the odd numbers 1-100...I'm not sure what to do.
$i=1;
while($i<=100)
{
echo $i;
$i=$i+2;
}
?>
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
