a498: Right Angled Triangle II
Tags :
Accepted rate : 90人/92人 ( 98% ) [非即時]
評分方式:
Tolerant

最近更新 : 2021-12-13 15:35

Content

print a right angled triangle with given size

Input

a integer 'size' represent the size

2<=size<=20

Output

a right angled triangle composed by *

Sample Input #1
2
Sample Output #1
**
*
Sample Input #2
4
Sample Output #2
****
***
**
*
Sample Input #3
5
Sample Output #3
*****
****
***
**
*
測資資訊:
記憶體限制: 64 MB
公開 測資點#0 (33%): 1.0s , <1K
公開 測資點#1 (33%): 1.0s , <1K
公開 測資點#2 (34%): 1.0s , <1K
Hint :

for loop

Tags:
出處:
[管理者:
kichan@g.pui... (陳嘉賢CHAN KA IN)
]


ID User Problem Subject Hit Post Date
沒有發現任何「解題報告」