测评会员优惠活动进行中 · 开通 VIP,有效期内测评不限次 VIP 优惠中 · 测评不限次 立即查看

A22677. 执行以下代码,输出结果是( ) #include <iostream> using namespace std; int main() { int x = 5; if (x > 3) { if (x < 10) { cout << "A"; } else { cout << "B"; } } else { cout << "C"; } return 0; }

单选题 中等
知识点

题目描述

执行以下代码,输出结果是(    ) ​​​​​​​

#include <iostream> 
using namespace std; 
int main() 
{ 
    int x = 5; 
    if (x > 3) 
    { 
        if (x < 10) 
        { 
            cout << "A"; 
        } 
        else 
        { 
            cout << "B"; 
        } 
    } 
    else 
    { 
        cout << "C"; 
    } 
    return 0;
}

选项(单选)

上一题 下一题