using System; using System.Linq; namespace ConsoleTest1 { class Program { static void Main(string[] args) { //Console.WriteLine("Hello World!"); Console.WriteLine("****变量程序练习*****"); // 菜单 string name; string foodName1, foodname2, foodname3; Console.Write("客户姓名:"); name = Console.ReadLine();// 接收用户输入 Console.Write("您点的素菜1是:"); foodName1 = Console.ReadLine(); Console.Write("您点的素菜2是:"); foodname2 = Console.ReadLine(); Console.Write("您点的荤菜1 is:"); foodname3 = Console.ReadLine(); } } }