Find the Sum of First n Even Natural Numbers
Problem Statement Given a number n. Find the sum of the first n even natural numbers. Example Input : 4 Output : 20 Explaination The Sum of the first 4 natural numbers is 20 because 2+4+6+8 = 20 Constraints 1 <= N <= 10000 Approach 1: Naive Approach (Using a for Loop) This is the Brute-Force method to find the sum ...