Computer Science, asked by nabbasi717, 1 month ago

Write a function file that converts temperature in degrees Fahrenheit (◦F) to degrees

Centigrade (◦C). Use input and fprintf commands to display a mix of text and

numbers. Recall the conversion formulation, C = 5/9 ∗ (F − 32)​

Answers

Answered by IceWeb
12

The following function can be used for it-

fahrenheit=input('Enter deg in F\n');

celsius=5*(fahrenheit-32)/9;

fprintf('%d Fahrenheit is %d Celsius\n',fahrenheit,celsius)

Similar questions