Advertisement
Farjana_akter

Untitled

May 25th, 2019
69
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 n,t,i,j;
  5. scanf("%d",&t);
  6. for(i=1;i<=t;i++)
  7. {
  8. scanf("%d",&n);
  9. int A[n];
  10. for(j=0;j<n;j++)
  11. {
  12. scanf("%d",&A[j]);
  13. }
  14. int max=A[0];
  15. for(j=1;j<n;j++)
  16. {
  17. if(A[j]>max)
  18. max=A[j];
  19. }
  20. printf("Case %d: %d\n",i,max);
  21. }
  22. return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement