using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace 作业2
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("请输入你的名字");
string name = Console.ReadLine();
Console.WriteLine("请输入你的语文成绩");
string strchinese = Console.ReadLine();
double chinese = Convert.ToDouble(strchinese);
Console.WriteLine("请输入你的数学成绩");
string strmath = Console.ReadLine();
double math = Convert.ToDouble(strmath);
Console.WriteLine("请输入你的英语成绩");
string strenglish = Console.ReadLine();
double english = Convert.ToDouble(strenglish);
int Chinese = Convert.ToInt32(chinese);
int Math = Convert.ToInt32(math);
int English = Convert.ToInt32(english);
int total = Math + Chinese + English;
int avg = total / 3;
Console.WriteLine("姓名:{0},你的总成绩为:{1},平均成绩为{2};", name, total, avg);
Console.ReadKey();
}
}
}