Contact: aviboots(AT)netvision.net.il
43,909 questions
57,306 answers
573 users
const N = 5; // The sum of the first N even numbers is N * (N + 1) let sum_even = N * (N + 1); console.log(`The sum of the first ${N} even numbers is: ${sum_even}`); // 2 + 4 + 6 + 8 + 10 = 30 /* run: The sum of the first 5 even numbers is: 30 */