执行以下代码段,输出的结果是?
#include<iostream>
using namespace std;
int main() {
int x = 10;
if (x > 5) {
cout << "x is greater than 5" << endl;
} else if (x < 5) {
cout << "x is less than 5" << endl;
} else {
cout << "x is equal to 5" << endl;
}
return 0;
}
x is equal to 5
x is greater than 5
无输出
x is less than 5