<?php
//杨辉三角
for ($i=6;$i >= 0;$i--)
{
for ($j=$i;$j <= 6;$j++)
{
if ($j <= 6-1)
{
echo "<b>a</b>";
}else
{
echo "<br />";
}
}
}
?>
编辑器加载中...
<?php
//杨辉三角
for ($i=6;$i >= 0;$i--)
{
for ($j=$i;$j <= 6;$j++)
{
if ($j <= 6-1)
{
echo "<b>a</b>";
}else
{
echo "<br />";
}
}
}
?>
编辑器加载中...
转载于:https://www.cnblogs.com/wangzong/archive/2011/07/16/2108317.html