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;
}
- Previous article:Complete collection of classic real estate advertising slogans
- Next article:Sentences about caring for the earth and protecting the earth
- Related articles
- Why did Li Yong poke Victor in the head?
- The slogan of community garbage classification in Times
- Winners of Shandong Normal University Student Skills Competition
- Does "lights go out when people walk" mean "lights go out when people die"?
- The purpose and significance of league building
- Is there a legal basis for urban management to enter the community for law enforcement?
- What does it mean to receive five kinds of education at the same time?
- Is a small apartment suitable for designing a booth restaurant? What is the reason?
- Overview of Zhuangyuanzhou
- Which province and city does Gaohe Village belong to?