namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            int max = 0;
            int[] shuzu = { 1, 2, 3 };
            max = number(shuzu);            Console.WriteLine(max);
        }        public static int number(int[] shu)
        {
            int max = shu[0];
            for (int i = 0; i < shu.Length; i++)
            {
                if (max < shu[i])
                {
                    max = shu[i];
                }
            }
            return max;
        }
    }
}