1. 101.
    0
    #include <stdio.h>
    3. include <stdlib.h>
    4. include <math.h>

    float distance1 (float x1,float y1,float x,float y);
    float distance2 (float x2,float y2,float x,float y);

    int main () {
    float x1,x2,y1,y2,x,y,d1,d2;
    FILE *inp;

    inp=fopen("exitLocations.txt","r");
    fscanf (inp,"%f%f%f%f",&x1,&y1,&x2,&y2);
    if (x1>0 && x1<100 && y1>0 && y1<100 && x2>0 && x2<100 && y2>0 && y2<100){
    printf ("exit 1: <x,y> read from file: <%.2f,%.2f>n",x1,y1);
    printf ("exit 2: <x,y> read from file: <%.2f,%.2f>n",x2,y2);
    printf ("Please enter the location of employee <x,y> coords:n");
    scanf ("%f%f",&x,&y);
    printf ("The employee is at <%.2f,%.2f>n",x,y);
    d1 = distance1 (x1,y1,x,y);
    d2 = distance2 (x2,y2,x,y);
    printf("Your distance to first door is: %.2fn",d1);
    printf("Your distance to second door is: %.2fn",d2);
    if (d1<d2)
    printf ("please immediately exit from first door !n");
    else
    printf ("please immediately exit from second door !n");}
    else
    printf ("oops! wrong time, wrong placen");
    system("pause");
    return 0;
    }
    float distance1 (float x1,float y1,float x,float y){
    float a;
    a = sqrt(pow (x1-x,2) + pow(y1-y,2));
    return a;
    }
    float distance2 (float x2,float y2,float x,float y){
    float a;
    a = sqrt(pow (x2-x,2) + pow(y2-y,2));
    return a;
    }
    ···
   tümünü göster