add new task

This commit is contained in:
Yesen 2023-10-13 22:50:10 +03:00
parent a97cdecca5
commit d1f553057a

View File

@ -0,0 +1,14 @@
n = int(input())
list = [n]
while n!= 0:
m = int(input())
list.append(m)
n+=m
sum=0
k = [i**2 for i in list]
for num in k:
sum += num
print (sum)