Home  >  Article  >  Backend Development  >  php循环话语

php循环话语

WBOY
WBOYOriginal
2016-06-13 13:01:38814browse

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

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