2016-10-22(已AC)
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main(void)
{
float x1,y1,x2,y2,a,b,c;
while(scanf("%f %f %f %f",&x1,&y1,&x2,&y2) !=EOF)
{
a = (x1-x2)*(x1-x2);
b = (y1-y2)*(y1-y2);
c = sqrt(a+b);
printf("%.2f\n",c);
}
return 0;
}