Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ Integer Division and Remainders | Section
R Programming Basics
セクション 1.  4
single

single

bookInteger Division and Remainders

メニューを表示するにはスワイプしてください

Note
Definition

Integer division calculates how many times one number fits into another, while the remainder shows what is left over.

For example, dividing 16 candies between 3 friends results in 5 candies for each friend and a remainder of 1, since 16 = 5 * 3 + 1.

Arithmetic Operators

In R, these operations are performed using:

  • %/% for integer division;
  • %% for the remainder of a division.

Example

1234
# Number of candies for each friend 16 %/% 3 # Number of candies remaining 16 %% 3
copy
タスク

スワイプしてコーディングを開始

  1. Compute how many complete days there are in 435 hours.
  2. Determine how many hours would be left over.

Keep in mind that a day is comprised of 24 hours.

解答

Switch to desktop実践的な練習のためにデスクトップに切り替える下記のオプションのいずれかを利用して、現在の場所から続行する
すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 1.  4
single

single

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

some-alt