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.
First line of input contains number of testcases. For each testcase, there will be single line containing a and b.
For each testcase, print the even number first and odd number next in individual lines.
Just complete the function evenOdd that takes two integers as input parameters.
1 <= T <= 100
0 <= A,B <= 108
Testcase 1: 4 is even and printed first. 5 is odd and printed next.
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.