関数の呼び出し(2つの整数変数の最大値をとる)


namespace c 
{
    class Program
    {
        /// <summary>
        ////// </summary>
        /// <param name="n1"> </param>
        /// <param name="n2"> </param>
        /// <returns> </returns>
        public static int Getmax(int n1, int n2)
        {
            return n1 > n2 ? n1 : n2;
        }

        static void Main(string[] args)
        {
            int Max = Program.Getmax(1, 2);
            Console.WriteLine(Max);
            Console.ReadLine();