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

WBOY
Release: 2016-06-13 12:02:13
Original
1213 people have browsed it

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

***********

上图php代码如下

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

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!