95.5k views
5 votes
Please use for - loop, mprintf() to write a Scilab program to convert temperature from Fahrenheit to Celsius from 0 to 300 with step size 20. The conversion formula is C = (F - 32)/1.8. Your program should provide the following formatted console output:

User Jesufer Vn
by
5.7k points

1 Answer

3 votes

Answer:

We have the code given below

Step-by-step explanation:

mprintf('%-20s%s','Fahrenheit','Celsius');

mprintf('------------------------------');

for x=0:20:300

mprintf('%-20d%.2f\\',x,(x - 32)/1.8);

end

User Artwl
by
5.7k points