找出订单总额里的bug

来自数据类型
C# 14 / .NET 10 入门 4分钟 找出1处问题

找出这个订单合计计算中的溢出错误。

csharp
static long TotalCents(int quantity, int unitCents)
{
    return quantity * unitCents;
}
在试验场中打开
报告错误