draw pyramid


Submit solution

Points: 10 (partial)
Time limit: 1.0s
Memory limit: 64M

Authors:
Problem type

題目說明

請輸入一整數後,輸出相對應高的金字塔(用*) 第一層為1個星,第二層為3個星,以此類推

輸入值均>0

輸入

整數

輸出

相對應高的金字塔*

sample input1

3

sample output1

  *
 ***
*****

sample input2

5

sample output2

    *
   ***
  *****
 *******
*********

Comments

There are no comments at the moment.