Exercise: Loops
Take on this exercise to practice your skills of loops.
Exercise 1: Even sequence generator
Problem statement
Your task is to complete the EvenNumbers
function by adding a loop that will collect the first n
even numbers into a list. The sequence of even numbers starts from 0
and increases by 2
each time, for example, 0, 2, 4, 6, up to a maximum of 18.
You are ...