write a program to find sum of cubes of three digit numbers
Answers
Answered by
0
Answer:
Let N be the input number.
Initialize a variable sum = 0.
Repeat the following steps while N > 0. Set temp = N % 10. This stores the rightmost digit of N in temp. Set N = N / 10. This step removes the rightmost digit of N. ...
The sum of the cube of digits of the input number is stored in sum.
Similar questions