#include <stdio.h>#include<math.h>int main(){ int x,y,p,q; double m; scanf("%d %d %d %d",&x,&y,&p,&q); m=(double)sqrt((p-x)*(p-x)+(y-q)*(y-q)); printf("Distance between two point = %lf\n",m); return 0;}
No comments