I need to write a code that will display all odd numbers from 1 to 100. I’m not sure what I’m doing wrong. Here is my code.
[php][/php]
<?php
$Count = 1;
while ($Count <= 100) {
echo "$Count
";
$Count *= 3;
}
?>
I need to write a code that will display all odd numbers from 1 to 100. I’m not sure what I’m doing wrong. Here is my code.
[php][/php]
<?php
$Count = 1;
while ($Count <= 100) {
echo "$Count
";
$Count *= 3;
}
?>
$Count += 2;