rinokenkyu.com

基本フォームをつくる(1)

カテゴリ: PHP

円の面積を求める

結果:

if(isset($_POST[“cmdCalc”])){
$r=@$_POST[“hankei”];
$s=$r*$r*3.14;
echo “半径が “.$r.” のとき、円の面積は “.$s.” です。”;
}

データ入力:

半径 r=


Bootstrap

© 2025 Study of Principles

© 2025 Study of Principles, Inc. All rights reserved.