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