Home > Backend Development > PHP Tutorial > 非常简单的数学题,如何写呢

非常简单的数学题,如何写呢

WBOY
Release: 2016-06-13 12:40:20
Original
750 people have browsed it

非常简单的数学题,怎么写呢?
$i=0;
while ($i {
$i++;
if ($i%2==0)
{
continue;
}
echo "$i
";
}
?>
我想显示的是0-20之间的奇数,问题是总到21,怎么办?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template