Cranes at VIIT Q1

Loan Eligibility Question

Write a C program that determines a user's eligibility for different types of bank loans based on their age, income, credit score, and employment status. The program should take four inputs from the user and classify their eligibility based on the following conditions:

Example Inputs & Outputs:

Enter your age: 35
Enter your income: 90000
Enter your credit score: 780
Are you employed? (Y for Yes, S for Self-employed, N for No): Y
You are eligible for a Premium Loan.
            
Enter your age: 20
Enter your income: 25000
Enter your credit score: 500
Are you employed? (Y for Yes, S for Self-employed, N for No): N
You are not eligible for a loan.
            

Task: Write a C program that implements this logic.