Home > Backend Development > PHP Tutorial > php循环话语

php循环话语

WBOY
Release: 2016-06-13 13:01:38
Original
839 people have browsed it

php循环语句
如何使用PHP循环语句写出一个等边三角形,并且第一行是一个星,第二行是三个星,第三行是五个星?
------解决方案--------------------
怎么又是三角形。。。
for($i = 1; $i   for($j = 1; $j    echo 'xing';
 }
 echo "
\n";
}

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