Thank you in advance to whoever can help me.
I’m not completely hopeless with PHP, but the book we are using for class is difficult in that the examples given in the book do not really assist in explaining the homework. That being said,
I am trying to write a while statement that displays all the odd numbers between 1 and 100. This is what I’ve got so far,
[php]<?php
$Count = 1;
while ($Count < 100) {
$Count = $Count % 2 != 0;
echo “$Count”;
}
?>[/php]
I guess I’m missing how to get the result to display more than just the number one… I’m sure I’m probably missing more than that.
Any help would be appreciated.