Write a Java Program to Find Sum of Digits of given Number

By | January 21, 2017

Write a Java Program to Find Sum of Digits of given Number


 

Sum of digits means add all the digits of entered number.

For example: we take any number like 121. Its sum of all digits is 1+2+1=4.

 

SOURCE CODE ::

 

OUTPUT ::

 

 

Leave a Reply