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
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
English,
28 days ago
Computer Science,
28 days ago
Math,
28 days ago
Computer Science,
1 month ago
Science,
9 months ago