0

What is the value of the result variable?

int a = 12; int b = 5; int result = a % b;

18th Jan 2020, 11:08 PM
mj Paull
mj Paull - avatar
3 Answers
+ 7
The remainder is 2 5 will go into 12 2 times but the result above is based on what is the remainder which is 2
18th Jan 2020, 11:18 PM
BroFar
BroFar - avatar
+ 4
2
27th Aug 2021, 7:04 PM
PRINCE KUMAR
PRINCE KUMAR - avatar
+ 1
Anser is 2
2nd May 2021, 5:55 AM
Tofik shaikh