第22791题 单选题
当前是9月,编写C++代码求N个月后的月份。横线处应填入的代码是( )。
    int N, M;
    cin >> N;
    M = _____________;
    if (M == 0)
        printf("%d个月后12月", N);
    else
        printf("%d个月后是%d月", N, M);
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析