第23770题 单选题
补全C++中使用辗转相除法求最大公因数的空缺代码

以下代码使用了辗转相除法求解最大公因数,请在横线处填入正确选项,使其能正确实现相应功能。

int gcd(int a, int b) {
    while (b != 0) {
        __________________________
    }
    return a;
}
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析