package pack_Condition; import java.util.Scanner; public class Break { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int count =0; for (int i = 0; i < 100; i+=scanner.nextInt()) { count++; System.out.printf("%d. 숫자입력(누적%d) : ", count,i); if (i == 999) { break; } } System.out.println("프로그램 종료!"); scanner.close(); } }