Assume that an int variable x has already been delared.  Write an expression whose value is the last (rightmost) digit of x.

LANGUAGE: Visual Basic

CHALLENGE:

Assume that an int variable x has already been delared.  Write an expression whose value is the last (rightmost) digit of x.

SOLUTION:

x Mod 10