占位符的简单使用

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

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            int n1 = 10;
            int n2 = 20;
            int n3 = 30;

            Console.WriteLine("第一个数字是{0},第二个数字是{1},第三个数字是{2}" , n1, n2, n3);//注意这后边直接跟逗号
            Console.ReadKey();

        }
    }
}

 

posted on 2018-04-03 17:55  三盛乙烯  阅读(103)  评论(0)    收藏  举报

导航