0
0

【PHP】 paizaスキルチェック 掛け算 解答

Last updated at Posted at 2024-05-12

問題はこちら

解答

answer.php
<?php
    # 入力される値を変数に保存する
    $a = trim(fgets(STDIN));
    $b = trim(fgets(STDIN));
    # aとbを掛け算して、答えを保存する
    $result = $a * $b;
    # 答えを出力する
    echo $result;
?>

Point

標準入力についての理解があれば問題ないと思います

参照

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0