Computer Studies > 2016 > 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 + J^2
60     PRINT "ANSWER =", SUM
70     NEXT J
80     END
Which of the following best represents the sequence of output from the program?
Answer: D
To see detailed solution to this question and thousands of other questions offline, download TestDriller SSCE. Practice rigorously for WASSCE, enjoy educational games, get chief examiners' reports, summary of WAEC literature books, compete with your peers, win prizes and more.