Home > Back-end >  School arrangement of homework to do in advance to woo meowed hope big help
School arrangement of homework to do in advance to woo meowed hope big help

Time:09-26

Job content is to write a program, any output values of x, y=(x - 10) is obtained by the program of the third power,,, can't do for a long time  can give you a sample let me refer to

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;
}
  • Related