Hint: This pseudocode calculates the sum of even numbers from 1 to N.
INPUT n // Assume numeric
total_sum = 0
counter = 1
WHILE counter <= n:
IF (counter % 2) == 0: // Use % for MOD, == for comparison
total_sum = total_sum + counter
END IF
counter = counter + 1
END WHILE
PRINT total_sum