4344 - < 피라미드

Time Limit: 1s Memory Limit: 128MB

Submissions: 723 Solved: 516
Description

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

Write a program that prompts the user to enter an integer 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