#F0001P1225. 阅读程序题3
阅读程序题3
阅读如下程序,提交输出结果(请不要提交代码或C++模板)。
#include <bits/stdc++.h>
using namespace std;
int main() {
int a = 50;
if (a >= 30 && a <= 80) {
a += 100;
}
if (a >= 80 && a <= 200) {
a += 200;
} else if (a >= 200) {
a += 500; // a = a + 500;
} else {
a = -1;
}
cout << a;
return 0;
}
相关
在以下作业中: