0
What is the value of the result variable?
int a = 12; int b = 5; int result = a % b;
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
+ 4
2
+ 1
Anser is 2
int a = 12; int b = 5; int result = a % b;