C
c
1
2
3
4
5
6
7
8
9
10
11
12
#include<stdio.h>
#include<math.h>
int main ()
{
double x1, x2, y1, y2, dis;
scanf ("%lf %lf", &x1, &x2);
scanf ("%lf %lf", &y1, &y2);
dis = ((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1));
printf ("%.4lf", sqrt (dis));
return 0;
}
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run