1 import java.util.Scanner; 2 3 public class Solution 4 { 5 public static void main(String[] args) 6 { 7 Scanner input = new Scanner(System.in); 8 9 System.out.print("Enter a number: "); 10 int number = input.nextInt(); 11 12 input.close(); 13 14 if(number % 5 == 0 && number % 6 == 0) 15 System.out.println(number + " is divisible by both 5 and 6"); 16 else if(number % 5 !=0 && number % 6 != 0) 17 System.out.println(number + " is not divisible by either 5 or 6"); 18 else 19 System.out.println(number + " is divisible by 5 or 6, but not both"); 20 } 21 }