2015 Java Chapter 5 (Week 05)

From: 2015-09-01 00:00:00 To: 2015-10-05 00:00:00 Now: 2024-11-21 23:53:25 Status: Public

E - < 피라미드

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