Home > Back-end >  Answer new o
Answer new o

Time:10-08

The sum of two Numbers. Write a o the square root of the problem, I directly in the definition of a variable's value is given, and use the scanf results are different with the scanf (wrong) here is my code
Double fun (double x, double y) {double z;
Z=SQRT (x) + SQRT (y); Return the z;
}
Int main ()
{
Double x, y, z;
Lf the scanf (" % % lf ", & amp; X, & amp; Y); Z=fun (x, y); Printf (" % lf ", z); }

CodePudding user response:

Should be yes, you may lose Chinese comma

CodePudding user response:

May also input x and y, did not enter a comma between
The scanf yourself, then add the printf (" % % lf, lf \ n ", x, y); Look at the output of the input is the same with you
  • Related