Basics_Que_09

Home / Java Practice Question / Basics_Que_09

Basics_Que_09


Write a program to check whether a number is divisible by 5 and 11 or not.


program : 



public class Loop {

public static boolean isDivisible(int num){
if(num%5==0 && num%11==0){
return true;
}else{
return false;
}
}

}