Cognizant interview question

Can you write a Program for armstrong number?