전체 글 (102) 썸네일형 리스트형 [팩토리얼] Scanner sc = new Scanner(System.in); System.out.print("입력 :"); int input = sc. nextInt(); int k=1; for(int i=1; i [정수 n받고 > n번째 항] Scanner sc = new Scanner(System.in); System.out.print("n 입력:"); int num = sc. nextInt(); int j =1; for(int i=0; i [x단 * 어느 수까지 출력] Scanner sc = new Scanner(System.in); System.out.println("단수입력:"); int input1 = sc. nextInt(); System.out.println("어느 수 까지 출력:"); int input2 = sc. nextInt(); System.out.println("2단"); int sum =0; for(int i=1; i 이전 1 ··· 22 23 24 25 26 27 28 ··· 34 다음