Advertisement
Guest User

Untitled

a guest
Nov 26th, 2015
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. static int max(List<int> iList)
  2. {
  3. int max = iList[0];
  4. foreach (int listEl in iList)
  5. {
  6. if (listEl >= max) max = listEl;
  7. }
  8. return max;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement