public class LoanPredictionProgram {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("Enter CIBIL Score (should be less than 600): ");
int cibilScore = scanner.nextInt();
System.out.println("Enter Age (between 20 and 55): ");
int age = scanner.nextInt();
System.out.println("Enter Monthly Income (should be greater than 50,000): ");
double monthlyIncome = scanner.nextDouble();
if (cibilScore < 600 && age >= 20 && age <= 55 && monthlyIncome > 50000) {
System.out.println("Loan Approved.");
} else {
System.out.println("Sorry, the loan cannot be approved.");
}
}
}
0 Comments