Write a function sum_even_numbers(n: int) -> int that calculates the sum of all even numbers from 1 to n inclusive using a loop.
sum_even_numbers(n: int) -> int
n
[*] Sum of evens up to 10: 30 [✓] Loop iteration verified (Time: 0.014s, Memory: 13.9 MB)