What is the output of expression 25%4.
Answers
Answered by
3
Explanation:
25 / 4 = 6, both the inputs are in the integer type, and then the result of the division will be also in the integer type.
Answered by
3
Answer:
Explanation:
Modulo is the operation of finding the Remainder when you divide two numbers. Therefore, when you ask "What is 25 mod 4?" you are asking "What is the Remainder when you divide 25 by 4?"
a=25 and b=4
a mod b = a − ( Int [a / b] × b ) , where Int is an integer part of the value
25 mod 4 = 25 − ( Int (25 / 4) × 4 )
25 mod 4 = 25 − ( 6 × 4 )
25 mod 4 = 25 − 24 = 1
25 mod 4 = 1
Hope this helps you
Please mark me as brainliest
Similar questions