Joke Collection Website - News headlines - Distance between coordinates in c language

Distance between coordinates in c language

//The code just written has passed the test. If you have any questions, please communicate.

//enter ctrl+z to end the input.

# include & ltstdio.h & gt

# include & ltmath.h & gt

int? main(){

Floating? x 1,y 1,? x2,? y2;

while(scanf("%f? %f? %f? %f ",& ampx 1,? & ampy 1,? & ampx2,? & ampy2)! =EOF){

printf("%.2f\n ",sqrt((x 1-x2)*(x 1-x2)? +? (y 1-y2)? *? (y 1-y2));

}

Return? 0;

}