Advertisement
Spocoman

02. Numbers 1...N with Step 3

Dec 23rd, 2021
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. num = int(input())
  2. for i in range(1, num + 1, 3):
  3.     print(i)
  4.  
  5.  
  6.  
  7. Taрикатско решение:)
  8.  
  9. for i in range(1, int(input()) + 1, 3): print(i)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement