School Accuracy: 51.37% Submissions: 9747 Points: 0
Calculate the product of all the elements in an array.
Input: The first line of input contains an integer T denoting the number of test cases. Then T test cases follow. Each test case consist of two lines . The first line of each test case contains an integer N.The second line of each test case contains N space separated integers denoting elements of the array A[ ].
For each test case in a new line print the product of all elements.