logo

Crowdly

Write a function named “sumSquares”, that takes a positive integer n and calc...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Write a function named “sumSquares”, that takes a positive

integer

n

and calculates the sum of the squares of all integers from 1

to

n.

That is, the function should calculate:

For example, if a user inputs =sumSquares(3) into a cell,

the result should be 14 (

).

[Expected time to answer: 12 mins]

More questions like this

Want instant access to all verified answers on moodle.lisboa.ucp.pt?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!