Write a program that reads in a positive integer N and calculates and displays the sum of the first N even integers. For example if N is 6, the program should display the value 42, which is: 2+4+6+8+10+12=42.
Caution: You need to write a program to do the addition. If you happen to know that the answer is always N*(N+1) and then just output the result, you will get 0 credit.
thank you.