WAEC - Computer Studies (2016 - No. 24)

Use the BASIC program below to answer this question
10   LET K = 2
20   LET L = 9
30   LET SUM = 0
40   FOR J = K TO STEP 2
50   SUM = SUM + J2
60   PRINT "ANSWER =", SUM
70   NEXT J
80   END
The last output that will be displayed by the program is
 20 
36 
64 
120

Explanation

120

Comments (0)

Advertisement