MATLAB: Celsius to Fahrenheit or vice versa

celsiusdispelsefahrenheitif

Creating a program to convert Celsius to Fahrenheit

Best Answer

disp('This program convert Celsius to Fahrenheit');
Celsius=input('Write a temperature in Celsius and you''ll have the result in Fahrenheit: ');
disp([ 'x = ' num2str(Celsius) ' Celcius and y = ' num2str(Celsius*1.8+32) ' Fahrenheit'])
Related Question