2019 Java Chapter 5 (Week 05)

From: 2019-09-04 00:00:00 To: 2019-11-01 23:59:59 Now: 2024-11-23 18:32:34 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