There are some students in a class, Can you help teacher find the highest student .
2 3 170.00 165.00 180.00 4 165.00 182.00 172.00 160.00
180.00 182.00
#include<stdio.h>
int main()
{
int t, n, i;
double max, a;
scanf("%d", &t);
while(t--)
{
max=0;
scanf("%d", &n);
for(i=0;i<n;i++)
{
scanf("%lf", &a);
if(a>=max)
max=a;
}
printf("%.2lf\n", max);
}
return 0;
}