请帮忙!我不知道该如何修复这个问题。我被卡在这里已经有一段时间了。至少代码应该长什么样,错误在第8-10行。
int intAmountA = 0;
int intAmountB = 0;
int intAmountC = 0;
decimal decPackageA = 0m;
decimal decPackageB = 0m;
decimal decPackageC = 0m;
decimal decTotal = 0m;
intAmountA = TxtAmountA.Text;
intAmountB = TxtAmountB.Text;
intAmountC = TxtAmountC.Text;
decPackageA = intAmountA * 150;
decPackageB = intAmountB * 120;
decPackageC = intAmountC * 90;
LblPackageA.Text = decPackageA.ToString("c");
LblPackageB.Text = decPackageB.ToString("c");
LblPackageC.Text = decPackageC.ToString("c");
decTotal = decPackageA + decPackageB + decPackageC;
LblTotal.Text = decTotal.ToString("c");