I told my students that the mod operator basically gives the remainder of division, so upon seeing:
0 mod 10
Some students (apparently) reasoned that, "10 goes into 0 zero times and there are 10 leftover."
What would be the best way to explain this to (non-math and non-CS major) students?
I would rather counter the "10 goes into 0 zero times with 10 leftover" reasoning than change my definition, if possible. I checked the documentation for the language, and it gave the same "remainder" definition that I gave.
Update: I am teaching a beginning programming class in Visual Basic (for non-CS majors). In most any programming language (as far as I know), the expression
0 mod 10 will evaluate to 0.