Java Program – to find the sum of the digits of a number.

Output: