What will be the result of the following:
7889 %1000 and 4%8
1. 7 and 2
2. O
889 and 2
3.
889 and 0
4.
889 and 4
Answers
Answered by
0
Answer:
889 and 4
Explanation:
'%' operator is used to know the remainder left after division so the answer is 889 and 4 because:
7889/1000 give the quotient 7 and remainder 889 so 889 is the remainder of the operation after that
4%8
here dividend is greater so 8*0 = 0 and the remainder becomes 4
Similar questions