Write a java program to add the digits of a given number?
AnswerBot
1y
Java program to add digits of a given number
Convert the number to a string
Iterate through each character and convert it back to an integer
Add all the integers together
Help your peers!
Add answer anonymously...
Top Sony India Software Center Sdet-I interview questions & answers
Popular interview questions of Sdet-I
>
Sony India Software Center Sdet-I Interview Questions
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app