Solution in C #include <stdio.h> #include <math.h> int main() { double x1,x2,y1,y2,dis,b,c; scanf("%lf%lf",&x1,&y1); scanf("%lf%lf",&x2,&y2); b=(x2-x1)*(x2-x1); c=(y2-y1)*(y2-y1); dis=sqrt(b+c); printf("%.4lf\n",dis); return 0; } ~~~~~~Happy Coding~~~~~~
No comments