C# For Demo

using System;

namespace ConsoleForDemo
{
    /// <summary>
    ///     C# For Demo.
    ///     https://www.cnblogs.com/LifeDecidesHappiness/p/15665536.html
    ///     LDH @ 2021-12-9
    /// </summary>
    internal class Program
    {
        /// <summary>
        ///     The end of the row.
        /// </summary>
        public static int RowEnd = 5;

        /// <summary>
        ///     The end of the column.
        /// </summary>
        public static char ColumnEnd = 'e';

        private static void Main()
        {
            Console.Title = "C# For Demo";

            for (var row = 0; row <= RowEnd; row++)
            for (var column = 'a'; column <= ColumnEnd; column++)
                Console.WriteLine($"The cell is ({row}, {column})");

            Console.ReadKey();
        }
    }
}

 

本文作者:Love In Winter
本文链接:https://www.cnblogs.com/LifeDecidesHappiness/p/15665536.html
版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
声援博主:如果您觉得文章对您有帮助,可以扫一扫,任意打赏,您的鼓励是博主的最大动力!
扫一扫,支付宝打赏 扫一扫,微信打赏
原文地址:https://www.cnblogs.com/LifeDecidesHappiness/p/15665536.html