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(); } } }