Question PSC-LOOP-0026
EasyWhat will be printed by the following pseudocode?
Integer i = 10
while (i > 0)
i = i - 3
end while
Print i
- A.
0
- B.
-1
- 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 i = 10
while (i > 0)
i = i - 3
end while
Print i
0
-1
Sign up free to see the answer and a step-by-step explanation.
1
-2