Check the given number is odd or even





Test cases:

Test cases Expected Result
testOddEven(12) even OK
testOddEven(3) odd OK
testOddEven(-55) odd OK

Java solution:

Javascript solution:

 

About the author

Bushan Sirgur

Well, I am Bushan Sirgur from Banglore, India. Currently, I am working as a Software Developer in a Service Base Company. I am interested in JAVA/J2EE, Angular 2, JavaScript, jQuery, MongoDB.

View all posts

Leave a Reply

Your email address will not be published. Required fields are marked *