1. 程式人生 > >用*列印靠右的倒三角形

用*列印靠右的倒三角形

line = int(input('請輸入邊長'))
row = 0 
while row <= line:
	l = row
	while l > 0:
		print(' ',end ='')
		l -= 1
	star = line -row +1
	while star >0:
		print('*',end= '')
		star -= 1
	print('')
	row += 1