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

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

WBOY
WBOYOriginal
2016-06-13 12:40:20694browse

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

Statement:
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