Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Write the main function, input two numbers from the keyboard, and then call the function change () to exchange the values of two real numbers and output them.
Write the main function, input two numbers from the keyboard, and then call the function change () to exchange the values of two real numbers and output them.
Invalid changes (floating and floating; X, floating & amp) {

Floating temperature;

temp = x;

x = y;

Y = temperature;

}

void main(){

Floating point x, y;

Printf ("Enter 2 numbers \ n");

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

change(x,y);

Printf ("after change \ n");

printf("%f %f\n ",x,y);

}