第36110题 单选题
下面的C++代码用于求M天后是星期几,两处横线处分别应填入的代码是( )。
    int N, M, D;
    cout << "当前星期几? "; // 星期日是0
    cin >> N;
    cout << "求多少天后? "; // 输入正整数
    cin >> M;

    D = ____________;
    if (____________)
        printf("%d天后是星期日", M);
    else
        printf("%d天后是星期%d", M, D);
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
知识点:
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析