draw pyramid
題目說明
請輸入一整數後,輸出相對應高的金字塔(用*) 第一層為1個星,第二層為3個星,以此類推
輸入值均>0
輸入
整數
輸出
相對應高的金字塔*
sample input1
3
sample output1
*
***
*****
sample input2
5
sample output2
*
***
*****
*******
*********
請輸入一整數後,輸出相對應高的金字塔(用*) 第一層為1個星,第二層為3個星,以此類推
整數
相對應高的金字塔*
3
*
***
*****
5
*
***
*****
*******
*********
Comments