Commit 494935d9 by BellCodeEditor

auto save

parent 50937aac
n =int(input("请输入行数: "))
for i in range(1,n + 1):
for k in range(0,abs(i - n)):
print(" ",end="")
for j in range(1,i + 1):
if j <= i and i + j <= 2 * n:
print("* ",end=" ")
print()
\ No newline at end of file
sum = 0
for i in range(0,100,2):
sum += i
print(sum)
\ No newline at end of file
print(sum)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment