문제 자연수 N이 주어졌을 때, 1부터 N까지 한 줄에 하나씩 출력하는 프로그램을 작성하시오. 입력 첫째 줄에 100,000보다 작거나 같은 자연수 N이 주어진다. ex) 5 출력 첫째 줄부터 N번째 줄 까지 차례대로 출력한다. ex) 1 2 3 4 5 코드 복사코드 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner=new Scanner(System.in); int n=scanner.nextInt(); for(int i=1;i