Newb needs help

The code looks fine. By default all pins are input at startup so setting A0 to input is redundant but complete. It would be useful to know what the problem is other than 'can't get it to work' and what errors, if any are being reported.

And put your code in code tags!!!!