2018 Java Chapter 5 (Week 05)

From: 2018-09-01 00:00:00 To: 2018-11-13 00:00:00 Now: 2024-11-23 18:33:10 Status: Public

D - 기본 피라미드

Time Limit: 1s Memory Limit: 128MB

Submissions: 969 Solved: 553
Description

피라미드의 크기 N을 입력으로 받아 출력하는 프로그램을 작성하세요.

Write a program that prompts the user to enter an integer N from 1 to 15 and displays a pyramid.

 

Input

* Line 1 : 피라미드의 크기 N (1~15)

 

Output

N크기의 피라미드

Sample Input
5
Sample Output
    *
   ***
  *****
 *******
*********
Source

JAVA2015 PE5.17