I'm trying to write program that calculates the standard deviation of the numbers in an array.

I was looking at other posts on this site trying to figure it out and I came across this one where brewbuck posted saying

How would I calculate the sum of squares and sum of square of sums?sqrt((sum_of_squares - square_of_sums / N) / (N-1))