f
, to take an integer, n
, from callers and 2 * n + 1
to the callers.g
, to take an integer, n
, from callers and 3 * n - 1
to the callers.main
function to take user's number and call function f
f
and g
. Finally, print the returning value from g
x
and g(f(x))
.main
function.