Java Exercises - Math Operations


  1. Write a program that asks the user for a three-digit number, finds the sum of the digits of the number, and then prints both the number and the digit sum.