<u>Answer:
</u>
<em>#include <stdio.h>
</em>
<em>#include <math.h>
</em>
<em>int main()
</em>
<em>{
</em>
<em>float x1, y1, x2, y2, gdistance;
</em>
<em>printf("Input x1: ");
</em>
<em>scanf("%f", &x1);
</em>
<em>printf("Input y1: ");
</em>
<em>scanf("%f", &y1);
</em>
<em>printf("Input x2: ");
</em>
<em>scanf("%f", &x2);
</em>
<em>printf("Input y2: ");
</em>
<em>scanf("%f", &y2);
</em>
<em>gdistance = ((x2-x1)*(x2-x1))+((y2-y1)*(y2-y1));
</em>
<em>printf("Distance between the said points: %.4f", sqrt(gdistance));
</em>
<em>printf("\n");
</em>
<em>return 0;
</em>
<em>}
</em>
<em>Here we need two coordinates so we need 4 variables namely x1, y1, x2, y2</em> to obtain the input from the user and to calculate distance we need another variable. <em>So finally the result should be printed.</em>