Question PSC-LOOP-0036
EasyWhat will be printed by the following pseudocode?
Integer r = 1
for (each i from 1 to 4)
r = r * 3
end for
Print r
- A.
243
- B.
81
- 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 r = 1
for (each i from 1 to 4)
r = r * 3
end for
Print r
243
81
Sign up free to see the answer and a step-by-step explanation.
12
27