10 if or switch for the first number (=100,200,300,...)
10 if or switch for the second number
10 if or switch for the third number
13 if or switch for zero till twelve
We had a contest here a couple months ago for a problem similar to this. You'll need an array to hold ones digits, tens digits, and hundreds digits. You can get pretty clever with this, actually.