c & f to if then

added variable to ask for c or f