#include #include int main(void) { printf("type in four values:\n"); double x1,y1,x2,y2,distance; scanf("%lf %lf %lf %lf",&x1,&y1,&x2,&y2); distance=(x2-x1)*(x2-x1) + (y2-y1)*(y2-y1); distance=sqrt(distance); printf("%lf %lf %lf %lf\n",x1,y1,x2,y2); printf("%lf\n",distance); return 0; }