Ex.01 完了

Ex.02 完了
Ex.03 完了
This commit is contained in:
2026-10-08 14:30:56 +09:00
parent 8f7d82dc0d
commit 3ceabfca13
3 changed files with 33 additions and 5 deletions

View File

@@ -2,12 +2,25 @@
// TODO: 20回繰り返しを行うfor文を記述してください
//-----for start
for ($i=0; $i < 20 ; $i++) {
// TODO: 今何回目の処理なのかを出力してください
echo $i."回目の処理です。<br>";
ob_flush();
flush();
}
//何番目?
for ($i=0; $i < 20 ; $i++) {
echo $i."番目です。<br>";
ob_flush();
flush();
}
// TODO: 奇数回のときには、「奇数」を出力してください
if ($i % 2 == 0){
echo "奇数";
}
?>
//-----for end