CodePudding user response:
Don't understand what is the meaning of the original poster? Any output or input x value, in addition the x what's arbitrary, on a keyboard can input is negative, can not enter the imaginary;If it is input x value;
# include & lt; Stdio. H>
Int main (void)
{
Double x=0.0;
Double y=0.0;
Printf (" please enter a number: \ n ");
While (the scanf (" % lf ", & amp; X)==1)
{y=(x - 10) * (x - 10) * (x - 10);
Printf (" (% lf - 10) lf power three=% \ n ", x, y);
}
return 0;
}