代码如下:public void PrintPercentage(int FinishedCount, int TotalCount) { decimal finishedPercentage = Convert.ToDecimal(FinishedCount) / Convert.ToDecimal(TotalCount); Console.SetCursorPosition(0, Console.CursorTop – 1); Console.WriteLine((finishedPercentage * 100).ToString(“f1