Given an array a of size N. The task is to find the largest element in it.
The first line of input contains an integer T, denoting the number of testcases. Then T test cases follow. Each test case contains an integer N , the number of elements in the array. Then next line contains N integers of the array separated by space.
Print the maximum element in the array.
1 <= T <= 100
1 <= N <= 100
1 <= a[i] <= 103
10 324 45 90 9808
1 2 0 3 2 4 5
Testcase 1: The largest element of given array is: 9808.
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.