0
Remainder
I'm trying to get sum to equal the remainder of num * 3, which should be 1, but I'm struggling. I know there should be a % somewhere, but not sure where. Any help would be appreciated. int num = 10; sum = num * 3;
2 odpowiedzi
+ 1
Brian Curran
Use modulus operator (%) not multiplication operator.
0
Cheers AJ!