human
Write me a code to check whether bitwise OR of N numbers is Even or Odd and the other steps required given the following:
Check whether bitwise OR of N numbers is Even or Odd | Function to check if bitwise OR of n numbers is even or odd.
if at least one odd number is found , then the bitwise OR of all numbers will be odd.
Bitwise OR is an odd number.
Driver code"
Solution in Python:
assistant
#Here is code to check whether bitwise OR of N numbers is Even or Odd and the other steps required.
 def check ( arr , n ) :
	for i in range ( n ) :
		if arr [ i ] & 1 :
			return True
	return False
if __name__ == ' _ _ main _ _ ' :
	arr = [ 3 , 9 , 12 , 13 , 15 ]
	n = len ( arr )
	if check ( arr , n ) :
		print ( " Odd ▁ Bit - wise ▁ OR " )
	else :
		print ( " Even ▁ Bit - wise ▁ OR " )