Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started