TF = input('\nenter temperature in degF: ');
Un = input('\nenter C, K, or R: ','s');
switch Un
case 'C'
    TC = (TF-32)/1.8;
    fprintf('\ntemp in degC = %6.2f\n',TC);
case 'K'
    TK = (TF-32)/1.8 + 273.15;
    fprintf('\ntemp in K = %6.2f\n',TK);
case 'R'
    TR = TF + 459.67;
    fprintf('\ntemp in degR = %6.2f\n',TR);
end
    