#include <iostream>
usingnamespace std;
int main()
{
unsignedlongint number;
unsignedint sumOfCubes = 0;
int digit;
cout << "Please enter an integer number: ";
cin >> number;
while( number > 0 )
{
digit = number % 10;
sumOfCubes = sumOfCubes + digit*digit*digit;
number = number / 10 ;
}
cout << "The sum of the cube of the digits is " << sumOfCubes << endl;
return 0;
}