ITP - The Basics - exercise 2

Use the modulo operator, division, or a combination of both to take a 4
digit number and find 1) the thousands number 2) the hundreds 3) the
tens and 4) and the ones.