Re-write the following function with a For loop instead of While loop
x = 0 y = 1 while x<8: while y<5: print(x, y) y+=1 x+=2 The answer should look like below 0 1 2 2 4 3 6 4
https://stackoverflow.com/questions/65768703/convert-for-loop-instead-of-while-loop January 18, 2021 at 12:07PM
没有评论:
发表评论