This program must be done under Unix
avgof3, that accepts three integers and returns
their average
medianof3, that accepts three integers and returns
the median value (the middle value of the three numbers)
doubleORnothing, that accepts three integers and
changes them in this way:
The number greater than the median should be doubled.
The number less than the median should be halved,
and the median value should be replaced with a 0.
For example,
if the parameters are 20, 10, 30 (in that order), then after the call to
doubleORnothing, the values will be 0, 5, 60.
avgof3,
medianof3 and doubleORnothing functions.