I am new to java and i can't figure out a code to do this..
Write a program that reads an integer with three digits and adds all the digits in the integer. For example, for the integer 102, the sum of its digits is 3.
any help would be much appreciated! thanks so much