Advertisement
Guest User

9

a guest
Aug 25th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int x,y,z,j,i,max;
  5. while (scanf("%d",&x)==1)
  6. {
  7. for(i=1;i<=x;i++)
  8. {
  9. max=0;
  10. scanf("%d",&y);
  11. for (j=0;j<x;j++)
  12. {
  13. scanf("%d",&z);
  14. if (z>max)
  15. max=z;
  16. }
  17. printf("Case %d: %ldn",i,max);
  18. }
  19. }
  20. return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement