numbers_stream.md

April 23, 2022 ยท View on GitHub

Stream of Numbers

  1. Print the numbers between 0 and 10
  2. Print the number between 0 and -10

Solution

for i in range(0, 11):
    print(i)
for i in range (0, -11, -1):
    print(i)