Even sum

Write a function @even_sum(a, b)@ that gets two integers aa and bb greater than zero and returns the sum of the even integers nn that are not multiple of bb and 0<na0 < n\le a. For instance @even_sum(10, 3)@ is 2+4+8+10=242 + 4 + 8 + 10 = 24.

Sample session

Problem information

Author: ProAl

Generation: 2026-01-25T17:18:43.767Z

© Jutge.org, 2006–2026.
https://jutge.org