Banner

My Tech Blog (n과x)

오늘의 명언
✅ 문제  [입력]1. N과 X를 입력받는다.2. N개의 정수를 입력받는다. (반복문) [출력]3. N개의 숫자 중 X보다 작은 수만 출력한다. ✅ 코드import java.util.Scanner;public class Main { 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[] nums = new int[n]; for (int ..
상단으로