Exercitiul 12..Este Urgent

Răspuns:
citeste n
s<-0
for i=1 to n
start
if (i%2==0) then
s<-s-pow(i,2)
else
s<-s+pow(i,2)
stop