using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace x180821汪敏 { class Program { static void Main(string[] args) { //输出 Console.WriteLine("书店管理销售系统>客户信息管理"); Console.WriteLine(); Console.WriteLine(); Console.WriteLine("***********************************"); Console.WriteLine("\t1.显示所有客户信息"); Console.WriteLine("\t2.添加客户信息"); Console.WriteLine("\t3.修改客户信息"); Console.WriteLine("***********************************"); Console.WriteLine("请选择,输入数字或按'n'返回上一级菜单"); //输入语句 //Console.ReadLine(); //格式:数据类型 变量名 double a,b,c,d,f; Console.WriteLine("请输入两个数"); a = Convert.ToDouble(Console.ReadLine()); b = Convert.ToDouble(Console.ReadLine()); c = a + b; d = a - b; f = a * b; Console.WriteLine("输出的和是:"+c); Console.WriteLine("输出的差是:" + d); Console.WriteLine("输出的积是:" + f); } } }
标签:输出,Console,计算,C#,System,WriteLine,using,ReadLine From: https://www.cnblogs.com/bky-wang/p/18124598