12707 - PME-practice   

Description

Draw a filled isosceles triangle using for loop and asterisk character:
 
    *
   ***
  *****
 *******
*********
Input : H (the height of the isosceles triangle)
Output : The filled isosceles (每一行的最後一個星號輸出後面都沒有換行,也沒有空白等字元)

Input

Output

Sample Input  Download

Sample Output  Download

Tags




Discuss