rgb-green.net

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

カテゴリ: PHP

円の面積を求める

結果:

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

データ入力:

半径 r=


© 2025 Computer Science

書籍
Webアプリ開発

© 2025 Computer Science, Inc. All rights reserved.