Question PSC-LOOP-0078
HardWhat will be printed by the following pseudocode?
Integer s = 0, i = 1
repeat
s = s + i * i
i = i + 2
until (i > 9)
Print s
- A.
165
- B.
285
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Loops question
What will be printed by the following pseudocode?
Integer s = 0, i = 1
repeat
s = s + i * i
i = i + 2
until (i > 9)
Print s
165
285
Sign up free to see the answer and a step-by-step explanation.
84
120