Advertisement
selimpastebin

Untitled

Feb 28th, 2020
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. //Horror Desh
  2.  
  3. #include <stdio.h>
  4. int main()
  5. {
  6. int n,i,j,Tc;
  7. int arr[10000];
  8. scanf("%d",&Tc);
  9. for(i=0; i<Tc; i++)
  10. {
  11. int high=0;
  12. scanf("%d",&n);
  13.  
  14. for(j=0; j<n; j++)
  15. {
  16. scanf("%d",&arr[j]);
  17. if(high<arr[j])
  18. {
  19. high=arr[j];
  20. }
  21. }
  22.  
  23. printf("Case %d: %d",i+1,high);
  24. }
  25. return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement