What will be the output of the following pseudo code? For input a = 8 & b = 9.…
PYQ Accenture Hiring Assessment 2025
What will be the output of the following pseudo code?
For input a = 8 & b = 9.
function (input a, input b)
If (a < b)
return function (b, a)
elseif (b != 0)
return (a + function (a, b - 1))
else
return 0
- A.
56
- B.
88
- C.
72
- D.
65
Attempted by 79 students.
Sign up free to check your answer
Sign up freeLoading lesson…

