program to check whether a given number is an armstrong number