There Are 3 Labs In The CSE Department(L1, L2, And L3) With A Seating Capacity Of X, Y, And Z. A Single Lab Needs To Be Allocated To A Class Of 'n' Students...............

There are 3 labs in the CSE department(L1, L2, and L3) with a seating capacity of x, y, and z. A single lab needs to be allocated to a class of 'n' students. The labs need to be utilized to the maximum i.e the number of systems that are not being used should be minimal. Which lab needs to be allocated to this class?
Input and Output Format:Assume that x, y, and z are always distinct.Refer sample input and output.
All text in bold corresponds to the input and the rest corresponds to output.Sample Input and Output:Enter x30Enter y40Enter z20Enter n25L1 should be allocated to this class

Sample Input and Output 2:Enter x30Enter y40Enter z20Enter n50None of the labs can be allocated

Program Code:#includeint main(){    int x, y, z, n, a, b, c;    printf("Enter x\n");    scanf("%d", &x);    printf("Enter y\n");    scanf("%d", &y);    printf("Enter z\n");    scanf("%d", &z);    printf("Enter n\n");    scanf("%d", &n);    a=x-n;    b=y-n;    c=z-n;    if(a<0&&b<0&&c<0)    printf("None of the labs can be allocated");    else if(a    printf("L1 should be allocated to this class");     else if(b    printf("L2 should be allocated to this class");      else    printf("L3 should be allocated to this class");     return 0;}