karolinagergert

Untitled

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