A program accepts a student's name, age, and marks to determine eligibility for a government student loan. To qualify, a student must be between 17 and 21 years old and have a minimum of 80% marks. The program displays whether the student is eligible for the loan or not based on the input values meeting the criteria.