An armstrong number is defined as a sum of cubes of all the individual digits of a number which is equal to the original number. eg. 153 = (1^3) + (5^3) + (3^3) = 1+125+27 = 153. See the image, where you will find the source code for checking the armstrong numbers. The program uses recursion to check the number.