IQ

Ad SpeedyAds

Saturday, February 11, 2012

Java program to find the divisibility by 2 without using mod(%)

/**to find divisibility by 2 without using "%"
*/
public class Shivam
{
public static boolean check(int a)
{
if(a/2.0-a/2==0)
return true;
return false;

}
}

3 comments:

  1. hey this is really funny..
    Why actually do u no want to use the mod???

    ReplyDelete
  2. Why can't I open the Skin Care providing sits???
    :(
    They seem interesting to me..
    Google's ads are not working properly on ur site dude..

    ReplyDelete
  3. Probably there is a problem with your browser..
    And I m sorry but I can't do any thing if ads are not working properly...
    As far as the Question of using '%' is concerned, this is just some innovation as an answer to tricky questions you may come across..

    ReplyDelete