阅读程序写结果。
#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
输出:______
x=10
x=11
x=12
x=13