개발원1 N과 X를 입력 받아 N개의 숫자 중 X보다 작은 수만 출력하기 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 package 자바페스티벌2; import java.util.Scanner; public class ex09 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.print("N 입력 >> "); int n = sc.nextInt(); System.out.print("X 입력 >> "); int x = sc.nextInt(); int[] arr = new int[n]; for (int i = 1; i 2023. 1. 23. 이전 1 다음 반응형