presentation error 왜 나는건지 모르겠습니다

shortcake Reply 8 years 30 weeks ago
public static void main(String[] args) { Scanner scan = new Scanner(System.in); int a, b, c, d; System.out.print(""); int n = scan.nextInt(); for (a = 0; a < n; a++) { for (d = 0; d < n - a; d++) { System.out.print(" "); } for (c = 0; c < a; c++) { System.out.print("*"); } for (b = 0; b < a + 1; b++) { System.out.print("*"); } System.out.println(); } } }
withcs2 Reply 8 years 30 weeks ago
아래는 안됩니다. * *** ***** 아래는 됩니다. * *** *****