-
A fuction takes an input, manipulates it and gives us an output.
-
Calculate the output of the following
f(x) =
x^2 if x is even
x+10 if x is odd
What will be the outputs for the following inputs?
a. f(2) = 4
b. f(7) = 17
c. f(0) = 0
- f(x) = ((x)/4)-5
a. f(30) = ((30)/4)-5
f(30) = (7.5)-5
f(30) = 2.5