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