Cognizant Interview Question

Can you write a Program for armstrong number?