Home  >  Article  >  Backend Development  >  php 基础算法(用*示意金字塔)

php 基础算法(用*示意金字塔)

WBOY
WBOYOriginal
2016-06-13 12:02:131214browse

php 基础算法(用*表示金字塔)
     *
    ***
   *****
  *******
 *********

***********

上图php代码如下

<?phpfor ($i=1;$i<=6;$i++){  for($z=5;$z>=$i;$z--){  	echo " ";  }	for($j=1;$j";}

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