Given an array, write a program to add the minimum number(should be greater than 0) to the array so that the sum of array becomes even
The first line of input contains an integer T denoting the number of test cases. The first and last line of each test case consists of an integer n. Next line of each test case cinsists of n spaced integers.
Print the minimum number required to the array so that the sum becomes even .
1 2 3 4 5 6 7 8
1 2 3 4 5 6 7 8 9
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.