写代码完成以下图形
自己写:
temp = input("请输入一个整数:")
intnum = int(temp)
add = 0
while intnum != add:
add = add + 1
print(add)
甲鱼老师:
temp = input("请输入一个整数:")
intnum = int(temp)
add = 0
while intnum != add:
add = add + 1
print(add)
temp = input("请输入一个整数:")
record = int(temp)
while record:
kong = record - 1
while kong > 0:
kong = kong - 1
print(" ",end = '')
star = record
while star > 0:
star = star - 1
print("*",end = '')
print()
record = record - 1