請輸入一個數字,高為該數字的直角三角形(需要用for迴圈). 語法提示:. n=int(input("請輸入高度:")). for i in range(n):. print("好棒棒"*(i+1)). 請輸入高度:5.
確定! 回上一頁