You need to stop asking for help and spend some time actually thinking about the problem...

1) how can you take a number entered by a user?
2) how can you get a look at each digit in that number?...