Question: Sum.java: Write a program that will repeatedly prompt the user to type a number until the user types a POSITIVE number, then print the sum
Sum.java: Write a program that will repeatedly prompt the user to type a number until the user types a POSITIVE number, then print the sum of the digits of that number. For instance, 12345 will lead to the print of 15.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
