第30244题 单选题
以下C++代码运行后的输出结果是?
#include <iostream>
using namespace std;
int main() {
    int a = 10, b = 20;
    if (a > 5)
        if (b < 10)
            cout << 1;
        else
            cout << 2;
    else
        cout << 3;
    return 0;
}
A

输出结果为1

B

输出结果为2

C

输出结果为3

D

无任何输出内容

程序运行统计
暂无判题统计
提交0次 正确率0.00%
答案解析