LoginSignup
1
0

More than 1 year has passed since last update.

【PHP基礎②】割り算の余りを求める

Last updated at Posted at 2022-06-13

[問題]  (参照:http://www.cc.kyoto-su.ac.jp/~mmina/bp1/hundredKnocksBasic.html)
15000を7で割った余りを表示するプログラムを作成しなさい。

コード

echo 15000 % 7;

結果

6

☆ a % b =aをbで割った余り

1
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
1
0