Demonstration of a loan eligibility check based on income and loan amount and generate pdf report . Here's a breakdown:
If the person's income is less than 20,000, the code concludes that the person is not eligible for a loan due to low income.
If the person's income is greater than or equal to 20,000 but the requested loan amount exceeds 5 times their income, the person is not eligible for a loan because the loan amount is too high relative to their income.
this code checks for basic loan eligibility based on income and the size of the requested loan, outputting different HTML messages based on the conditions.