We've learnt about operators and other basics of Java 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 denoted by T. For each testcase, there will be single line containing a and b separated by space.
For each testcase, print the even number first and odd number next in individual lines.
Sinc this is a function problem, you don't have to take any input. You just have to complete the function evenOdd().
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.