单选题

阅读程序写结果。

#include<iostream>

using namespace std;

int main() {

    int x;

    cin >>x;

    if(x==10) {

        x++;

    } else {

        x--;

    }

    if(x>10) {

        x++;

    } else {

        x--;

    }

    if(x<10) {

        x++;

    } else {

        x--;

    }

    if(x!=10) {

        x++;

    } else {

        x--;

    }

    cout <<"x=" << x << endl;

    return 0;

}

输入: 10

输出:______

A

x=10

B

x=11

C

x=12

D

x=13

赣ICP备20007335号-2