If p, q, r, s are distinct integers such that: f(p, q, r, s) = max(p, q, r, s)…
GATE · 2015 · CS · Set 2 · General Aptitude
If p, q, r, s are distinct integers such that:
f(p, q, r, s) = max(p, q, r, s)
g(p, q, r, s) = min(p, q, r, s)
h(p, q, r, s) = remainder of (p × q)/(r × s) if (p × q) > (r × s), or remainder of (r × s)/(p × q) if (r × s) > (p × q).
Also a function fgh(p, q, r, s) = f(p, q, r, s) × g(p, q, r, s) × h(p, q, r, s). Also the same operations are valid with two-variable functions of the form f(p, q).
What is the value of fg(h(2, 5, 7, 3), 4, 6, 8)?
Attempted by 112 students.
Sign up free to check your answer
Sign up freeLoading lesson…