Advertisement
Guest User

Untitled

a guest
Jan 27th, 2020
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4.  
  5. int N = 0;
  6.  
  7. scanf("%d", &N);
  8.  
  9. int max = -9999;
  10. int number = 0;
  11.  
  12. for (int i = 1; k <= N; i++){
  13. scanf("%d", &number);
  14. if (max < namber)
  15. max = number;
  16. }
  17.  
  18. printf("%d\n", max);
  19.  
  20. return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement