karolinagergert

Untitled

Jul 10th, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2. char=int(input())
  3. perrem=char*2 -1 # 2n - 1
  4. s=0
  5. for i in range(1,perrem,2):
  6. x=int(input())
  7. s+=x
  8. print('Квадрат числа равен: ',perrem + s)
Advertisement
Add Comment
Please, Sign In to add comment