public class Main

{

public static void main(String[] args)

{

int n;

Scanner s = new Scanner(System.in);

System.out.print("Enter any number:");

n = s.nextInt();

if(n % 5 == 0)

{

System.out.println(n+" is divisible by 5");

}

else

{

System.out.println(n+" is not divisible by 5");

}

}

}

Enter any number:45

45 is divisible by 5