temperature conversion in c code