Where am i going wrong in this "for loop" script associated with the question below? See the script below the question:
Show older comments
Write a script which will print a table on the screen of the temperature in Celsius and the corresponding temperature in Fahrenheit from 0oC to 100oC in steps of 5oC. [Do not use arrays, calculate values individually with a for loop] (Fahrenheit = 1.8 × Celsius + 32)
script:
x= 0:5:100
y=((1.8*x)+32);
fprintf('%d in Farenheight = %d \n',x,y)
end
Accepted Answer
More Answers (0)
Categories
Find more on Simulink in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!