Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Input integer variables x, y, and calculate the value of z according to the following formula C language! ! ! ! !
Input integer variables x, y, and calculate the value of z according to the following formula C language! ! ! ! !
# include & ltstdio.h & gt

# include & ltmath.h & gt

int main()

{

Double x, y, z;

Printf ("Please enter x and y:");

scanf("%lf%lf ",& ampx & amp; y);

z = sqrt(fabs(x * x+y * y-3 * x * y));

Printf ("Result: %lf\n ",z);

Returns 0;

}