Medium
Compose Two Functions
Write
compose(f, g) that returns a new function computing f(g(x)). Read an integer and print compose(square, add_one)(n) and compose(add_one, square)(n).Input
One integer.
Output
Two lines.
Sample 1
Input
3
Output
16 10
Sample 2
Input
0
Output
1 1
Output appears here