返回列表 發帖

for 迴圈 (四)

橫向遞增顯示1~99間所有奇數

  1. for i in range(1,100,2):
  2.     print(i,end=" ")
複製代碼

  1. for i in range(1,100,2):
  2.     print(i,end=" ")
複製代碼

TOP

for i in range(1,100,2):
    print(i,end=" ")

TOP

  1. for i in range(1,100,2):
  2.     print(i,end=" ")
複製代碼

TOP

  1. for i in range(1,100,2):
  2.     print(i,end=" ")
複製代碼

TOP

  1. for i in range(1,100,2):
  2.     print(i,end=" ")
複製代碼

TOP

  1. for i in range(1,99,2):
  2.     print(i,end=" ")
複製代碼

TOP

  1. for i in range(1,100,2):
  2.     print(i,end=" ")
複製代碼

TOP

for i in range(1,100,2):
    print(i,end=" ")

TOP

  1. for i in range(1,100,2):
  2.     print(i,end=" ")
複製代碼

TOP

本帖最後由 張絜晰 於 2023-8-3 11:25 編輯
  1. for i in range(99,0,-2):
  2.     print(i,end=" ")
複製代碼
Attention Seeker </3

TOP

  1. for i in range(1,100,2):
  2.     print(i,end="  ")
複製代碼

TOP

--

TOP

for i in range(1,100,2):
    print(i,end=" ")

TOP

  1. for i in range(1,100,2):
  2.     print(i,end=" ")
複製代碼

TOP

6

TOP

for i in range(1,100,2):
    print(i,end=' ')

TOP

  1. for i in range(1,100,2):
  2.     print(i,end=" ")
複製代碼

TOP

for i in range(1,100,2):
    print(i,end=" ")

TOP

for i in range(1,100,2):
     print(i,end=' ')

TOP

返回列表