输入一个正整数X。输出X行X列的三角形星阵。

样例输入
3
样例输出
*
**


X = int(input("输入整数X:"))

for i in range(X):
    print("*" * i)

如有帮助,请在【本答案右上角】,点击【采纳】