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
    
    }
}

posted @ 2017-04-13 18:34  TBHacker  阅读(1340)  评论(0编辑  收藏  举报