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

Más respuestas (0)

Categorías

Más información sobre Simulink en Centro de ayuda y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Preguntada:

el 9 de Nov. de 2015

Respondida:

el 9 de Nov. de 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by