Answer to Question #295091 in Algorithms for Mitz

Question #295091

Design an algorithm and the corresponding flowchart for finding the sum of




the numbers 2, 4, 6, 8, …, n

1
Expert's answer
2022-02-08T10:17:38-0500



Declare Integer n
Declare Integer i
Declare Integer sum
Display "Ente N: "
Input n
Set sum = 0
Set i = 2
For i = 2 To n Step 2
    Set sum = sum + i
End For
Display "Sum: ", sum

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS