This question appeared in the quiz. I paid points to unlock the answer and it displayed "3". I didn't understand why and tried to get a hint to help me but it didn't give me a hint and deducted one of my points. I repeated the hint request thinking maybe I clicked the wrong button and same result (and another point lost!) Meh! Why is the answer 3 here? if x=15, wouldn't the code output x (i.e., 15) per the WriteLine statement? And if modulus is at play, how could 3 be the answer? 15 % = 6 can't even be solved because 6 can't be the remainder with 15 being the starting point. Is the answer right in front of my face? And how do I get my 2 points back since I never got the hints? Thanks!
What is the output of this code?
int x = 15;
int y = 6;
x %= y;