Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Write a program, input the values of variables X and Y, and analyze the output results (prompt to correctly choose whether X and Y are real variables or plastic variables).
Write a program, input the values of variables X and Y, and analyze the output results (prompt to correctly choose whether X and Y are real variables or plastic variables).
y=2.4x- 1/2

# contains "stdio.h"

void main()

{

Floating point x, y;

scanf("%f ",& ampx);

y = 2.4 * x- 1.0/2.0;

printf("%f ",y);

}

y=x%2/5-x

# contains "stdio.h"

void main()

{

Floating point x, y;

scanf("%f ",& ampx);

y =(int)x %(int)2/5.0-x;

printf("%f ",y);

}