Design an algorithm and the corresponding flowchart for finding the sum of
the numbers 2, 4, 6, 8, …, n
Expert's answer
Declare Integer n
Declare Integer i
Declare IntegersumDisplay"Ente N: "
Input n
Set sum = 0Seti = 2
For i = 2 To n Step 2Setsum = sum + i
End For
Display "Sum: ", sum