I was trying to code for a perimeter program where I asked the number of sides and asked for the length of a side for as many sides there were. I stored the side lengths into a list called PRMTR but I couldn't get the sum of the list. Any help would be appreciated. Here is my code:

ClrHome

SetUpEditor ⌊PRMTR

Input ("NUMBER OF SIDES: ",N)

N→dim(⌊PRMTR)

1→X

For(X,1,N)

Input ("SIDE LENGTH: ",S)

{S→⌊PRMTR

End

ClrHome

Output(5,5,sum(⌊PRMTR,1,N))

I think the issues is at the end when I tell the calculator to find the sum up to N. But I don't know any way around it.