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 sumConsider 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 sumCreate a free account to access the full topic