We've learnt about operators and other basics of CPP. Now, it's time to take another leap and learn to use control structures that helps us choose flow of any code.Given two integers a and b. Your task is to print the even number first and odd number next in individual lines.
Note: Must print end of the line at the end.Example 1:Input: a = 2, b = 3Output: 23Example 2:Input: a = 5, b = 2Output:25
Your Task:
You don't need to read or print anything. Your task is to complete the functionevenOdd()which takes a and b as input parameter and complete the task.
Expected Time Complexity:O(1)
Expected Space Complexity:O(1)Constraints:
1 ≤ a, b ≤ 10^{8}

Difficulty: EASY
Expected Time Complexity: O(1)
Expected Auxiliary Space: O(1)Constraints:

Starter code:
#User function Template for python3

class Solution:
    def evenOdd(self, a, b):
        #Code here

Solutions:
class Solution:

	def evenOdd(self, a, b):
		l = []
		if a % 2 == 0:
			l.append(a)
			l.append(b)
		else:
			l.append(b)
			l.append(a)
		for i in l:
			print(i)


class Solution:

	def evenOdd(self, a, b):
		if a % 2 == 0:
			print(a)
			print(b)
		else:
			print(b)
			print(a)


class Solution:

	def evenOdd(self, a, b):
		s = ''
		if int(a) % 2 == 0 and int(b) % 2 != 0:
			print(a)
			print(b)
		if int(a) % 2 != 0 and int(b) % 2 == 0:
			print(b)
			print(a)


class Solution:

	def evenOdd(self, a, b):
		if a % 2 == 0 and b % 2 != 0:
			print(a)
			print(b)
		elif a % 2 == 0 and b % 2 == 0:
			print(a)
			print(b)
		elif a % 2 != 0 and b % 2 == 0:
			print(b)
			print(a)


class Solution:

	def evenOdd(self, a, b):
		s = ''
		v = ''
		if a % 2 == 0:
			s += str(a)
			v += str(b)
		else:
			s += str(b)
			v += str(a)
		print(s)
		print(v)


class Solution:

	def evenOdd(self, a, b):
		r = []
		t = []
		if a % 2 == 0:
			r.append(a)
			t.append(b)
		else:
			t.append(a)
			r.append(b)
		print(*r)
		print(*t)


class Solution:

	def evenOdd(self, a, b):
		x = 0
		y = 0
		ans = [a, b]
		for i in ans:
			if i % 2 == 0:
				x = i
			else:
				y = i
		l = [x, y]
		for i in l:
			print(i, end='\n')


class Solution:

	def evenOdd(self, a, b):
		l = []
		if a % 2 == 0:
			print(a, end='\n')
			print(b)
		else:
			print(b, end='\n')
			print(a)


class Solution:

	def evenOdd(self, a, b):
		A = str(a)
		B = str(b)
		if int(A) % 2 == 0:
			print(A)
			print(B)
		else:
			print(B)
			print(A)


class Solution:

	def evenOdd(self, a, b):
		if a & 1 == 0:
			print(a)
			print(b)
		else:
			print(b)
			print(a)


class Solution:

	def evenOdd(self, a, b):
		if a % 2:
			(a, b) = (b, a)
		print(a)
		print(b)


class Solution:

	def evenOdd(self, a, b):
		if a & 1:
			print(b, a, sep='\n')
		else:
			print(a, b, sep='\n')


class Solution:

	def evenOdd(self, a, b):
		if a % 2 == 0 and b % 2 == 1:
			print(a)
			print(b)
		elif a % 2 == 1 and b % 2 == 0:
			print(b)
			print(a)
		else:
			return -1


class Solution:

	def evenOdd(self, a, b):
		if a % 2 == 0:
			print(a, b, sep='\n')
		else:
			print(b, a, sep='\n')
if __name__ == '__main__':
	T = int(input())
	for i in range(T):
		(a, b) = map(int, input().strip().split())
		obj = Solution()
		obj.evenOdd(a, b)


class Solution:

	def evenOdd(self, a, b):
		if a % 2 == 0 and b % 2 != 0:
			print(a)
			print(b)
		elif a % 2 == 0 and b % 2 == 0:
			print(a)
			print(b)
		elif a % 2 != 0 and b % 2 == 0:
			print(b)
			print(a)
if __name__ == '__main__':
	T = int(input())
	for i in range(T):
		(a, b) = map(int, input().strip().split())
		obj = Solution()
		obj.evenOdd(a, b)