22%5 with explaination
Answers
Answered by
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
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