Write a function to generate n even numbers in a list? function solve( a ){ //write your code here } Login to Submit
Input: 2 Output: [0, 2] Input: 3 Output: [0, 2, 4]