Home > Back-end >  Novice just learning, bosses, please comment
Novice just learning, bosses, please comment

Time:03-24

Input the value of t, but can not get the value of R

CodePudding user response:

A bit confusing code?
 
Float R, t;
The scanf (" % f % f ", & amp; R, & amp; T);
R=10 + 30 t * * t + t;
Printf (" % R=f \ n \ nt=% f ", R, t);

To provide the reference
Was totally confused at first glance, to take a look, you should always put the scanf and printf function in the wrong

CodePudding user response:

For reference, the original poster leakage talked:
 # include 
Int main ()
{
Float R, t;
The scanf (" % f ", & amp; T);
R=10 + 30 t * * t + t;
Printf (" % R=f \ n \ nt=% f ", R, t);

return 0;
}

CodePudding user response:

Wrong is wrong, you just have to enter t, should be changed to the scanf (" % f ", & amp; T);

CodePudding user response:

Can you help me change it, [face] monkey2:025 PNG [/face], you want to enter any temperature and resistance

CodePudding user response:

Sophomore year, this year has just started to learn programming, sometimes look at have a headache,

CodePudding user response:

Will, thank you??