Calculate the sum of squares of given input of numbers.

calculate the sum of squares of given input of numbers.





Given, sum = 0

for i = 1..n

read x

sum + = x`\times`x

next i

Post a Comment

0 Comments