From d69f07ecf67199ccac0e9763f62bfabb698011e1 Mon Sep 17 00:00:00 2001 From: m-takatsuki <26-m-takatsuki-webstar@it-college.co.jp> Date: Wed, 7 Oct 2026 13:22:51 +0900 Subject: [PATCH] =?UTF-8?q?Ex.04=20=E5=AE=8C=E4=BA=86=20Ex.06=20=E5=AE=8C?= =?UTF-8?q?=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Question02-Calculation/Ex04.php | 5 ++++- Question02-Calculation/Ex06.php | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Question02-Calculation/Ex04.php b/Question02-Calculation/Ex04.php index d473885..f5539fe 100644 --- a/Question02-Calculation/Ex04.php +++ b/Question02-Calculation/Ex04.php @@ -5,7 +5,10 @@ print $num; // TODO: プログラムを修正して、変数numに50が入るようにしてください // リテラルを使わずに、変数を使って計算してください - +$num = 25; +$num1 = 50; +$num1 =&$num; +$num = 50; // 以下のプログラムで50が表示されるようにしてください print $num; // ※※ この行は修正しないでください diff --git a/Question02-Calculation/Ex06.php b/Question02-Calculation/Ex06.php index 650169a..d902792 100644 --- a/Question02-Calculation/Ex06.php +++ b/Question02-Calculation/Ex06.php @@ -10,7 +10,7 @@ print '
'; // TODO: 変数 x, y の値をリテラルな数字を使わずに入れ替えてください // ※プログラムは何行書いても良いです - +[$y,$x]=[$x,$y]; // ここから下は修正しないでください print 'x:' . $x; // 「x:50」が表示される