1. 자릿수 더하기 풀이:import java.util.*;public class Solution { public int solution(int n) { int answer = 0; // 자연수 n의 각 자릿수를 더하는 반복문 while(n>0) { answer += n % 10; // 자릿수 더하기 n /= 10; // 다음 자릿수 이동 } return answer; }} 2. 나머지가 1이 되는 수 찾기 풀이:class Solution { public int solution(int n) { int answer = 0; // 1부터 n-1까지..