Basic Program To Print Sum of Square of First 10 Even Numbers
2May.2018
REM TAKE A NUMBER, SQUARE IT
CLS
SUM = 0
FOR F = 1 TO 10
LET X = 2 * F – 1
LET D = X * X
SUM = SUM + D
PRINT F, X, D, SUM
NEXT F
PRINT
PRINT “SUM OF FIRST 10 EVEN SQUARES IS”, SUM
END
No Comments