Computer Science, asked by azaanaliraza, 4 months ago

Write a program in Java to input an integer number and print the sum of all its digits.
eg.
Input: 1572
Output:
Sum of digits: 1 + 5 + 7+ 2
= 15

Answers

Answered by rwitamaaon
0

Answer:

please see these pictures

Explanation:

see above pictures

Attachments:
Similar questions