运行 ❯
建立您
自己的
网站
×
更改方向
更改主题,深色/浅色
前往 Spaces
#include <iostream> using namespace std; int main() { int myNum = 10; // Is this a positive or negative number? if (myNum > 0) { cout << "The value is a positive number.\n"; } else if (myNum < 0) { cout << "The value is a negative number.\n"; } else { cout << "The value is 0.\n"; } return 0; }
这个值是一个正数。