Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     double x1,y1,x2,y2,dis;
  5.  
  6.     scanf("%lf %lf",&x1,&y1);
  7.  
  8.     scanf("%lf %lf",&x2,&y2);
  9.  
  10.     dis=sqrt((x2-x1)*(x2-x1) + (y2-y1)*(y2-y1));
  11.  
  12.     printf("%.4lf\n",dis);
  13.  
  14.     return 0;
  15. }