using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _4._1表达式 { class Program { static void Main(string[] args) { Console.WriteLine("输入语文成绩:"); double Chinese = Convert.ToDouble(Console.ReadLine()); Console.WriteLine("输入数学成绩:"); double Math = Convert.ToDouble(Console.ReadLine()); Console.WriteLine("你的总分是{0},平均分{1}", Math + Chinese, (Math + Chinese) / 2); Console.ReadKey(); } } }
|
|
来自: 工厂应用 > 《51自学网C#学习笔记》