C#定义变量

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    class Program
    {
        # region 主程序
        static void Main(string[] args)
        {
            int myInteger;
            string myString;
            myInteger = 17;
            myString = "Hello C#";
            Console.WriteLine("{0} {1}",myInteger,myString);
            Console.ReadKey();
        }

        #endregion
    
    }
}

原文地址:https://www.cnblogs.com/jiqing9006/p/6705440.html