下面程序的输出是()
#include <stdio.h>
int main() {
int m = 0;
for (int i = 1; i <= 100; i++) {
for (int j = 1; j <= i; j++) {
if (j % 2 != 0)
continue;
m++;
}
}
printf("%d\n",m);
return 0;
}
A.2500 B.2501
C.2550 D.2551
登录后提交答案