Forezz

ДЗ 5 Н 2

Jul 11th, 2019
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.10 KB | None | 0 0
  1. x = int(input())
  2. count = 0
  3. d = 1
  4. for i in range (x):
  5. count +=d
  6. d += 2
  7. print (count)
Advertisement
Add Comment
Please, Sign In to add comment