k&r; exercise 1.15 - temperature conversion with function