Basic Program To Print Sum of First 100 Odd Numbers

REM SUM OF FIRST 100 ODD NUMBERS
CLS
SUM = 0
FOR F = 1 TO 100
LET SUM = SUM + 2 * F – 1
NEXT F
PRINT SUM
END

Please follow and like us:

Leave a comment