和语句for(int x=0;x<15;x+=2)sum+=x+5;作用一样的语句是
题型:单项选择题
问题:
和语句for(int x=0;x<15;x+=2)sum+=x+5;作用一样的语句是( )
A.for(int x=5;x<20;x+=2)sum+=x;
B.for(int x=5;x<20;x+=x-2)x+=2;
C.for(int x=0;x<15;x+=2)sum+=x+3;x+=2;
D.上述全对
和语句for(int x=0;x<15;x+=2)sum+=x+5;作用一样的语句是( )
A.for(int x=5;x<20;x+=2)sum+=x;
B.for(int x=5;x<20;x+=x-2)x+=2;
C.for(int x=0;x<15;x+=2)sum+=x+3;x+=2;
D.上述全对