Advertisement
skashminzim

horror dash

Jul 31st, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.37 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int t,a,n,i,j=1;
  5.     int max=0;
  6.     scanf("%d",&t);
  7.     for(i=1;i<=t;i++)
  8.     {  
  9.         scanf("%d",&n);
  10.         st:
  11.             scanf("%d",&a);
  12.             if(max<a)
  13.                 max=a;
  14.             j++;
  15.             if(j<=n)
  16.                 goto st;
  17.         printf("Case %d: %d\n",i,max);
  18.         max=0;
  19.         j=1;
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement