新手求教。

WBOY
WBOYOriginal
2016-06-23 13:52:27796browse


左边怎么写?


回复讨论(解决方案)

for($i=0; $i<=10; $i++){    for($k=10-$i; $k>0; $k--){        echo "  ";    }    for($j=$i; $j>=1; $j--){        echo "*&nbsp";    }    echo "*<br/>";}for($s=10; $s>=1; $s--){    for($k=10-$s+1; $k>0; $k--){        echo "  ";    }    for($a=$s; $a>=1; $a--){        echo "*&nbsp";    }    echo "<br/>";}


                    *                  * *                * * *              * * * *            * * * * *          * * * * * *        * * * * * * *      * * * * * * * *    * * * * * * * * *  * * * * * * * * * ** * * * * * * * * * *  * * * * * * * * * *     * * * * * * * * *       * * * * * * * *         * * * * * * *           * * * * * *             * * * * *               * * * *                 * * *                   * *                     * 

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