Sobes.tech
Intern — Senior

Function that generates even numbers up to a specified limit

livecode

Task condition

Create a function that takes an integer n and returns a list of all even numbers starting from 0 up to, but not including, n. For example, for input 10, the function should return 0, 2, 4, 6, 8.