Computer Science, asked by dayabn660, 6 months ago

22%5 with explaination​

Answers

Answered by atrs7391
0

Result of 22%5 is 2.

% operators gives the remainder as the result, so when 22 is divided by 5 the remainder is 2 so the answer is 2.

Answered by anindyaadhikari13
3

Required Answer:-

Question:

  • Write the output of 22 % 5

Solution:

  • The output of 22 % 5 will be 2.

Explanation:

The modulo operator is used to find out the remainder obtained when a number is divided by another number.

When 22 is divided by 5, the remainder obtained is 2. Let's check it out.

5  )  22  ( 4

    - 20

   ---------

         2

Here,

  • Quotient = 4 and,
  • Remainder = 2

Answer: Therefore, 22 % 5 = 2.

Similar questions