Computer Science, asked by mausamirab152, 9 months ago

rightmost digit most a number

Answers

Answered by lk162381
1

Explanation:

When you use the '%' operator you are asking for "What is the remainder after dividing by that number" So if I have 28 % 10 I'm saying "What is the remainder of 28 divided by 10". This, of course, would give me 8. Getting the remainder of a number divided by 10 only leaves you with the ones digit (right most number).

Similar questions