Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static int max(List<int> iList)
- {
- int max = iList[0];
- foreach (int listEl in iList)
- {
- if (listEl >= max) max = listEl;
- }
- return max;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement