Computer Science, asked by Smurtiranjanswain, 2 months ago

Output for '20 mod 6' is​

Answers

Answered by himanshu2006vps
2

Answer:

20% 6 is 2

Explanation:

Your answer is 2

Answered by anindyaadhikari13
2

Required Answer:-

Question:

  • Write the output of the following statement.

Output:

  • 20 % 6 gives output - 2

Explanation:

The modulo operator is used to find the remainder obtained when an integer is divided by another integer.

6 ) 20 ( 3

     18

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

       2

When 20 is divided by 6, quotient obtained is 3 and the remainder obtained is 2.

Therefore,

➡ 20 % 6 = 2

Similar questions