Program to find sum of digits of a number in java

Let’s see a program to find the sum of digits of a number in java.

Output is :-

Enter a number
78
sum of digits is 15

Top