Computer Science, asked by iarindamdutta, 3 months ago

calculate the sum of first 'n' even integer numbers excluding zero. ( Java )
Input 20
output 420

Answers

Answered by prajeetravi
0

Explanation:

Input : n = 4 Output : 20 Sum of first 4 even numbers = (2 + 4 + 6 + 8) = 20 Input : n = 20 Output : 420

 

Similar questions