Write a program that will find all the three digit natural numbers that are equal to the sum of the cubes of their digits. Maximum 3 digit number is 999. What is the first?

Printable View

- 11-12-2010, 03:31 PMSorenaHow can I do this program?
Write a program that will find all the three digit natural numbers that are equal to the sum of the cubes of their digits. Maximum 3 digit number is 999. What is the first?

- 11-12-2010, 03:42 PMfunnyboy
To multiply all digits divide the number by ten and store the leftover in another variable (by using the % operator). Then divide the left number by ten again and so on.

- 11-12-2010, 04:09 PMJosAH
- 11-13-2010, 02:49 AMal_Marshy_1981
I hope this was a mathematic course....