If int a = 25, b = 5, c = 0; what value is stored in c when c = a % b; ?
5.0
5
0
Answers
Answered by
4
The value stored will be 0
% gives the result as the remainder and not the quotient, So when 25 is divided by 5 the the quotient is 5 and the remainder is 0 so answer is 0...
Answered by
1
Answer:
5
Explanation:
as yk a=25, b=5, c=0
so....
c = a%b
c = 25%5
as here... %does not give the reminder it gives the questiont.
Hope it helps u bro❤️
Similar questions