int cnt = 0; for (int i = 1; i < 5; i += 2) cnt += 1; cout << cnt;
结果是 2,A选项怎么错了呢?
题目写错了,应该是 cnt = cnt + i;
共 1 条回复
题目写错了,应该是 cnt = cnt + i;