# include
Int main ()
{
Int C;
Int F=150;
C=5 * (F - 32)/9;
Printf (" fahr=150, Celsius=% d ", C);
return 0;
}
Why display format error?
CodePudding user response:
Results cast a try (int) 5 * (F - 32)/9CodePudding user response:
Code is no problem, also need not casts, because 5 * (F - 32)/9; Itself is integer arithmetic of data,The original poster to display what to say about the format? It is wrong to think,
printf (" fahr=150, Celsius=% d \ n ", C);
You can add a line break,
CodePudding user response:
Code that's right, should have the error message sent to estimate fault is on the part of the compilerCodePudding user response:
Code seems to be no problem, what wrong cut a figureCodePudding user response:
Vs: no problem, the default conversion of the estimate is wrong,CodePudding user response:
It's nice