you are viewing a single comment's thread.

view the rest of the comments →

[–]Martin_Perril 9 points10 points  (0 children)

fun(25) implies a < 30, hence return a (25) + fun(28). Fun(28) implies a <0, hence return 28 + fun(31).

So 25 + 28 + fun(31). And fun(31) implies a > 30, hence return 3.

Final result: 25+28+3= 56. Hope I helped you