Contact: aviboots(AT)netvision.net.il
43,903 questions
57,300 answers
573 users
$N = 5; // The sum of the first N even numbers is N * (N + 1) $sum_even = $N * ($N + 1); echo "The sum of the first {$N} even numbers is: {$sum_even}\n"; // 2 + 4 + 6 + 8 + 10 = 30 /* run: The sum of the first 5 even numbers is: 30 */