MATLAB: Where am i going wrong in this “for loop” script associated with the question below? See the script below the question:

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

Best Answer

You are missing the "for" key word:
for x= 0:5:100