Example 30: Armstrong Numbers
Learn how to print Armstrong numbers.
We'll cover the following...
Problem
If the sum of cubes of each digit of the number is equal to the number itself, the number is called an Armstrong number. For instance,