第21715题
已知C++程序输出结果为"1 4 7 10",补全for循环中①处的代码,下列选项正确的是?

已知以下C++程序的输出结果为"1 4 7 10",需要补全for循环中①处的代码:

#include <iostream>
using namespace std;
int main(){
  for(int i = 1; i <= 10;  ①){
    cout << i << " ";
  }
  return 0;
}
A

i++

B

i *= 2

C

i += 3

D

i * 2