Commit a4fd4df3 by BellCodeEditor

save project

parent 93c67d5d
Showing with 2 additions and 1 deletions
...@@ -11,7 +11,7 @@ print(func(15)) #调用函数并打印结果 ...@@ -11,7 +11,7 @@ print(func(15)) #调用函数并打印结果
n=1 n=1
while True: while True:
if func(n)<20: if func(n)<20:
n =n + 1 n = n + 1
else: else:
print("第" + str(n) + "月之后,兔子数量达到20对") print("第" + str(n) + "月之后,兔子数量达到20对")
break break
\ 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