# Answer to Question #3372 in Python for mukunda

Question #3372

Write Program to print sum of n even numbers in recursive method

Expert's answer

def sum_even_numbers (n):

if n == 0: return 0

return 2 * n + sum_even_numbers(n-1)

print(sum_even_numbers(7))

if n == 0: return 0

return 2 * n + sum_even_numbers(n-1)

print(sum_even_numbers(7))

Need a fast expert's response?

Submit orderand get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

## Comments

## Leave a comment