s=Text1.Text
ans=0
Text2.Text=Str(ans)
若Text1中输入的内容为“10”则Text2中输出的内容为“2”,划线处代码不正确的是( )
A. for =1 To Len(s) t=Val (Mid(s,i, 1)) ans=ans+t*2^ (L.en(s)-i) next i | B. for i=1 To Len(s) t=Val (Mid(s, i, 1)) ans=ans*2+t next i |
C. for i=Len(s) To 1 step -1 t=Val (Mid(s, i, 1)) ans=ans+t*2^ (i-1) next i | D. for i=1 To Len(s) t=Val (Mid(s, Len(s)-i+1,1)) ans=ans+t*2^ (i-1) next i |