Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int n,t,i,j;
- scanf("%d",&t);
- for(i=1;i<=t;i++)
- {
- scanf("%d",&n);
- int A[n];
- for(j=0;j<n;j++)
- {
- scanf("%d",&A[j]);
- }
- int max=A[0];
- for(j=1;j<n;j++)
- {
- if(A[j]>max)
- max=A[j];
- }
- printf("Case %d: %d\n",i,max);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement