Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- namespace SmartRobot
- {
- public class ArrayMaxChip : IChip<int>
- {
- public ArrayMaxChip()
- {
- ChipName = "Max-Chip";
- }
- public string ChipName { get; set; }
- public int Calculate(int[] numArray)
- {
- return numArray.Max();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement