Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int maxn(int a[], int n)
- {int max, numero;
- for(int i=0; i<n; i++){
- numero=a[i];
- if(i>0)
- max=numero;
- else if(numero>max)
- max=numero;
- }
- return max;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement