Computer StudiesAlgorithms and flowchartsJAMB
S = 0; for i = 1 to 4: S = S + i. What is the final value of S?
Show answer
Answer: C. 10
0 + 1 + 2 + 3 + 4 = 10.
An AdmitMe practice question, written for the JAMB syllabus. Not an official past question.