下列算法suanfa1中语句"x=x*2;"的执行次数是( )。 void suanfa1(int n) { int i,j,x=1; for(i=1;i
A.n(n-1)/2
B.n(n+1)/2
C.n2
D.nlog2n
正确答案是B