using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication2
{
? ? class Program
? ? {
? ? ? ? static void Main(string[] args)
? ? ? ? {
? ? ? ? ? ? Console.WriteLine(4 % 2);? //取余 輸出為0
? ? ? ? ? ? Console.WriteLine(5 % 2);
? ? ? ? ? ? Console.WriteLine("請先輸入你的語文成績");
? ? ? ? ? ? string strchinese = Console.ReadLine();
? ? ? ? ? ? Console.WriteLine("請先輸入你的數(shù)學成績");
? ? ? ? ? ? string strmath = Console.ReadLine();
? ? ? ? ? ? Console.WriteLine("請先輸入你的英語成績");
? ? ? ? ? ? string strenglish = Console.ReadLine();
? ? ? ? ? ? int chinese = Convert.ToInt32(strchinese);
? ? ? ? ? ? int math = Convert.ToInt32(strmath);
? ? ? ? ? ? int english = Convert.ToInt32(strenglish);
? ? ? ? ? ? int total = chinese + math + english;
? ? ? ? ? ? Console.WriteLine("你的總分為{0}", total);
? ? ? ? ? ? int average = total / 3;
? ? ? ? ? ? Console.WriteLine("你的平均分為{0}", average);
? ? ? ? ? ? Console.ReadKey();
? ? ? ? }
? ? }
}