Commit 0859259b by BellCodeEditor

auto save

parent f6a882b6
Showing with 7 additions and 2 deletions
...@@ -15,4 +15,9 @@ print(sum) ...@@ -15,4 +15,9 @@ print(sum)
#输出1-100内所有奇数 #输出1-100内所有奇数
for i in range(100): for i in range(100):
if (i + 1)%2 == 1: if (i + 1)%2 == 1:
print(i + 1,end = " ") print(i + 1,end = " ")
\ No newline at end of file print()
#输出1-100内所有的偶数
for i in range(100):
if (i + 1)%2 == 0:
print(i + 1 ,end= " ")
\ 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