A61354. #include <iostream>using namespace std;int main() {int i = 100, x = 0, y = 0;while (i > 0) {i--;x = i % 8;if (x == 1)y++;}cout << y << endl;return 0;}输出:_________
填空题
知识点
题目描述
#include <iostream>
using namespace std;
int main() {
int i = 100, x = 0, y = 0;
while (i > 0) {
i--;
x = i % 8;
if (x == 1)
y++;
}
cout << y << endl;
return 0;
}
输出:_________