Write a program to accept a number. Find the sum of the cubes of its digits. Print the number along with the sum using appropriate messages. If the number accepted is 213, find 23+13+33 (Use while loop).
Input: 213
Output:
Number = 213
Sum of the cubes of its digits is 36
Answers
Answered by
0
Answer:
Input : n = 687
Output : 21
Input : n = 12
Output : 3
Explanation:
Mark as brainlist
Similar questions