PHPで数学ループルのサンプル
PHPコード:
for($a = 1; $a <10; $a++){
echo "
“; echo “"; for ($b=1; $b <= $a; $b++) { echo “";
}
echo “";
echo "
“; echo “$a*$b=".$a*$b; echo “ |
“;
}
?>
Coding Changes the World
PHPコード:
for($a = 1; $a <10; $a++){
echo "
“; echo “"; for ($b=1; $b <= $a; $b++) { echo “";
}
echo “";
echo "
“; echo “$a*$b=".$a*$b; echo “ |
“;
}
?>