Question PSC-COND-0024
EasyWhat is the output of this pseudocode?
Integer a = 4, b = 9, c = 7, m
m = a
if (b > m)
m = b
end if
if (c > m)
m = c
end if
Print m
- A.
4
- B.
20
- 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
Conditionals question
What is the output of this pseudocode?
Integer a = 4, b = 9, c = 7, m
m = a
if (b > m)
m = b
end if
if (c > m)
m = c
end if
Print m
4
20
Sign up free to see the answer and a step-by-step explanation.
7
9