โ† Nagarro questions
CodingEasy

Sum of Squares of First N Natural Numbers

Filed under Nagarro

Given a positive integer `n`, compute and return the sum of squares of the first `n` natural numbers, i.e., $1^2 + 2^2 + 3^2 + \dots + n^2$.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Nagarro questions

Collected from public candidate posts and coding forums. Updated Nov 2026.