Basics_Que_10

Home / Java Practice Question / Basics_Que_10

Basics_Que_10


Write a program to check whether a number is even or odd.

Program : 

public class Loop {

public static boolean isCheck(int num){
if(num%2==0){
return true;
}else{
return false;
}
}

}