接受用户输入的内容

 1 using System;
 2 using System.Collections.Generic;
 3 using System.Linq;
 4 using System.Text;
 5 using System.Threading.Tasks;
 6 
 7 namespace ConsoleApp1
 8 {
 9     class Program
10     {
11         static void Main(string[] args)
12         {
13             Console.WriteLine("请输入你的姓名:");
14             String str = Console.ReadLine();
15 
16             Console.WriteLine("你的名字是{0}。" , str);
17             Console.ReadKey();
18 
19 
20 
21 
22         }
23     }
24 }

 

posted on 2018-04-03 18:20  三盛乙烯  阅读(88)  评论(0编辑  收藏  举报

导航