human
Alternate bits of two numbers to create a new number | set even bit of number n.
res for store 101010. . number.
generate number form of 101010. . ... till temp size.
if bit is even then generate number and or with res.
return set even bit number.
set odd bit of number m.
res for store 101010. . number.
generate number form of 101010. . . . till temp size.
if bit is even then generate number and or with res.
return set odd bit number.
set even bit of number n.
set odd bit of number m.
take OR with these number.
Driver code.
n = 1 0 1 0 ^ ^ m = 1 0 1 1 ^ ^ result = 1 0 1 1"
Solution in Python:

=====
Write me a code to alternate bits of two numbers to create a new number and the other steps required?
assistant
#Here is code to alternate bits of two numbers to create a new number and the other steps required.
 def setevenbits ( n ) :
	temp = n
	count = 0
	res = 0
	while temp > 0 :
		if count % 2 :
			res |= ( 1 << count )
		count += 1
		temp >>= 1
	return ( n & res )
def setoddbits ( m ) :
	temp = m
	count = 0
	res = 0
	while temp > 0 :
		if not count % 2 :
			res |= ( 1 << count )
		count += 1
		temp >>= 1
	return ( m & res )
def getAlternateBits ( n , m ) :
	tempn = setevenbits ( n )
	tempm = setoddbits ( m )
	return ( tempn tempm )
n = 10
m = 11
print ( getAlternateBits ( n , m ) )