Advertisement
Najmul_Kabir

horrordash

Aug 29th, 2019
97
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 t,n,c,k,i,max;
  5. while (scanf("%d",&t)==1)
  6. {
  7. for(i=1;i<=t;i++)
  8. {
  9. max=0;
  10. scanf("%d",&n);
  11. for (k=0;k<n;k++)
  12. {
  13. scanf("%d",&c);
  14. if (c>max)
  15. max=c;
  16. }
  17. printf("Case %d: %ldn",i,max);
  18. }
  19. }
  20. return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement