'Scanner two = new Scanner(System.in); System.out.println("Enter Age:" );` age = two.nextInt(); if(age < 18){ System.out.println("You are a minor. You cannot proceed.");
} else { System.out.println("Age accepted " + age); }'
Aucun commentaire:
Enregistrer un commentaire