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