DerioFT

1073.py

Oct 3rd, 2021
800
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. N = int(input())
  2.  
  3. if 5 < N < 2000:
  4.     for data in range(1, N + 1):
  5.         if data % 2 == 0:
  6.             result = data**2
  7.             print(f"{data}^2 = {result}")
  8. else:
  9.     pass
Advertisement
Add Comment
Please, Sign In to add comment