完成以下要求:
{
? ? ? ? ? ? try
? ? ? ? ? ? {
? ? ? ? ? ? ? ? double sum = 0;
? ? ? ? ? ? ? ? Console.WriteLine("請輸入本月會員消費金額");
? ? ? ? ? ? ? ? double[] money = new double[5];
? ? ? ? ? ? ? ? for (int i = 0; i <money.Length; i++)
? ? ? ? ? ? ? ? {
? ? ? ? ? ? ? ? ? ? Console.WriteLine("請輸入第{0}款金額:", i + 1);
? ? ? ? ? ? ? ? ? ? money[i] = Convert.ToInt32(Console.ReadLine());
? ? ? ? ? ? ? ? ? ? sum = sum + money[i];
? ? ? ? ? ? ? ? }
? ? ? ? ? ? ? ? Console.WriteLine("序號? ? ? 金額(元)");
? ? ? ? ? ? ? ? for (int i = 0; i < money.Length; i++)
? ? ? ? ? ? ? ? {
? ? ? ? ? ? ? ? ? ? Console.WriteLine("{0}? ? ? ? ? {1}", i + 1, money[i]);
? ? ? ? ? ? ? ? ? ? if (i == money.Length - 1)
? ? ? ? ? ? ? ? ? ? {
? ? ? ? ? ? ? ? ? ? ? ? Console.WriteLine("總金額? {0}? ? ", sum);
? ? ? ? ? ? ? ? ? ? }
? ? ? ? ? ? ? ? }
? ? ? ? ? ? }catch
? ? ? ? ? ? {
? ? ? ? ? ? ? ? Console.WriteLine("你寫你媽呢?剃斧?");
? ? ? ? ? ? }
? ? ? ? ? ? Console.ReadKey();
? ? ? ? }