제대로 출력이 되는데 왜 오류가 나는지 모르겠습니다. 코드를 첨부하니 확인 부탁드립니

only1hour Reply 8 years 21 weeks ago
package com.company; import java.util.Scanner; import java.lang.String; public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); int num = input.nextInt(); input.close(); for (int i = 1; i <= num; i++) { for(int j=i;j<num; j++){ System.out.print(" "); } for (int j =num-i; j < num-1 ; j++) { System.out.print("**"); } System.out.println("*"); } } }
rkdqls3079 Reply 8 years 21 weeks ago
저기 패키지 부분 빼야 될겁니다