human
What is a code to check a number is odd or even without modulus operator and the other steps required given the following:
Check a number is odd or even without modulus operator | Returns true if n is even , else odd.
Return true if n / 2 does not result in a float value ..
Driver code"
Solution in Python:
assistant
#Here is code to check a number is odd or even without modulus operator and the other steps required.
 def isEven ( n ) :
	return ( int ( n / 2 ) * 2 == n )
n = 101
if ( isEven ( n ) != False ) :
	print ( " Even " )
else :
	print ( " Odd " )