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

By | 21.01.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 ::

 

 

0 0 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments