Basic Program To Print Sum of Even Numbers in First 10 Natural Numbers

REM SUM OF EVEN NUMBERS IN FIRST 10 NATURAL NUMBERS
CLS
SUM = 0
FOR F = 10 TO 1 STEP -2
SUM = SUM + F
PRINT F, SUM
NEXT F
PRINT ” SUM”; SUM
END

Please follow and like us:

Leave a comment