السؤال الثاني :
كود PHP:
#include <stdio.h>
#include <math.h>
int main ()
{
double x1,y1,x2,y2, result;
printf("X1 = ");
scanf("%lf",&x1);
printf("Y1 = ");
scanf("%lf",&y1);
printf("X2 = ");
scanf("%lf",&x2);
printf("Y2 = ");
scanf("%lf",&y2);
[COLOR="Red"]result[/COLOR] = pow((x1 - x2),2) + pow((y1 - y2),2);
[COLOR="red"]result[/COLOR] = sqrt(result);
printf("The Result = %f \n", result);
return 0;
}