كود:
#include <stdio.h>
#include<conio.h>
{
Int main (void)
Double x1,y1,x2,y2,d;
Printf("please enter the value of the two points");
Scanf("%lf,%lf,%lf,%lf,&x1,&y1,&x2,&y2");
d = sqrt(power(x1-x2)-2)+power((y1-y1),2);
printf("the distance between the two points = %f"/n,d) ;
getch();
return(0);
}