Wednesday, February 26, 2014

To find whether an entered number is armstrong or not

In this programme I have given the concept that whether the input number is armstrong or not.
For this we have to be clear about what the armstrong number is:
I will make clear about it by the help of example:

For example: 153 is armstrong  number because 1^3*5^3*3^3 is 153 itself. So if the summation of the entered number is the number itself then it is called armstrong number.
The main source code of this programme is given below:

No comments:

Post a Comment