Write a structured program (in C or Python) that takes an integer input n and prints the sum of all even numbers from 1 to n.

Write a structured program (in C or Python) that takes an integer input n and prints the sum of all even numbers from 1 to n.

From the Combined Bank Senior Officer October 2025 – Written exam, question 41 of 50.

More from this paper