Pseudocode: Sum of Even Numbers

Report a typo

Consider the following pseudocode that represents an algorithm to find the sum of all even numbers up to a given number N. Identify the correct statements about this pseudocode.

SET sum = 0
FOR i = 2 TO N STEP 2
	sum = sum + i
END FOR
PRINT sum
Select one or more options from the list
___

Create a free account to access the full topic