Computer Science, asked by panditakshay2005, 3 months ago

Sage: 32 % 6 will give a.2 b. 18.75 c. 5 d.0 ​

Answers

Answered by anindyaadhikari13
1

Required Answer:-

Question:

  • Find the output of the following statement.

Output:

  • 2 (Option A) is the right answer.

Explanation:

The modulo(%) operator is used to calculate the remainder obtained when a number is divided by another number. Let us divide 32 by 6.

6 ) 32 ( 5

  - 30

---------------

      2

Thus, remainder obtained is 2. Therefore,

➡ 32 % 6 = 2

Similar questions