a53

oop_2

a53
May 14th, 2020
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. int Max()
  2. {
  3. int maxim=t[0];
  4. for(int i = 1; i < n; i++)
  5. if(t[i] > maxim)
  6. maxim=t[i];
  7. return maxim;
  8. }
  9. int Cauta(int val)
  10. {
  11. for(int i = 0; i < n; i++)
  12. if(t[i]==val)
  13. return i;
  14. return -1;
  15. }
Add Comment
Please, Sign In to add comment