Advertisement
Guest User

Untitled

a guest
Jun 3rd, 2020
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. int maxn(int a[], int n)
  2.  
  3. {int max, numero;
  4.  
  5. for(int i=0; i<n; i++){
  6.  
  7. numero=a[i];
  8.  
  9. if(i>0)
  10.  
  11. max=numero;
  12.  
  13. else if(numero>max)
  14.  
  15. max=numero;
  16.  
  17. }
  18.  
  19. return max;
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement