What is returned from fun (5, 12) and fun (12, 5) as coded below? int fun (int n, int m) { if (n == m) { return 0; } else if (n> m) { } else { } return 1; return fun (m, n);

icon
Related questions
Question
What is returned from fun (5, 12) and fun (12, 5) as coded below?
int fun (int n, int m)
{
}
if (n == m)
{
return 0;
}
else if (n> m)
{
return 1;
}
else
{
}
return fun (m, n);
Transcribed Image Text:What is returned from fun (5, 12) and fun (12, 5) as coded below? int fun (int n, int m) { } if (n == m) { return 0; } else if (n> m) { return 1; } else { } return fun (m, n);
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Similar questions