Question bank › Math
Dsa Math Medium

Sum of Squares of Even Numbers

Given a positive integer n, calculate the sum of squares of all even numbers from 1 to n (inclusive). Print the result. ### Input Format: A single integer n (1 <= n <= 10^6). ### Output Format: A single integer representing the sum of squares of even numbers from 1 to n. ### Example: Input: 5 Output: 20 ### Explanation: The even numbers between 1 and 5 are 2 and 4. Their squares are 4 and 16, which sum to 20.

Key concepts

mathsquaresiteration

Practise this out loud — free

Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.

🎙 Practise this question now
Part of Praxari's verified interview question bank. We show the prompt and concepts to practise with — never a copy-paste solution.