在Visual Basic中,与程序段:a = a + bb = a - ba = a - b功能相同的程序段是A. a = b  b = aB. a = a + b  a = a - b  b = a - bC.t = aa = bb = tD. If a > b Thena = b  Elseb = a  End If请问这道题为什么选C啊?

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/21 20:22:27
在VisualBasic中,与程序段:a=a+bb=a-ba=a-b功能相同的程序段是A. a=b  b=aB. a=a+b  a=a-b  b=a-bC.t=aa=bb=tD. Ifa>bThena

在Visual Basic中,与程序段:a = a + bb = a - ba = a - b功能相同的程序段是A. a = b  b = aB. a = a + b  a = a - b  b = a - bC.t = aa = bb = tD. If a > b Thena = b  Elseb = a  End If请问这道题为什么选C啊?
在Visual Basic中,与程序段:
a = a + b
b = a - b
a = a - b
功能相同的程序段是
A. a = b
  b = a
B. a = a + b
  a = a - b
  b = a - b
C.t = a
a = b
b = t
D. If a > b Then
a = b
  Else
b = a
  End If
请问这道题为什么选C啊?

在Visual Basic中,与程序段:a = a + bb = a - ba = a - b功能相同的程序段是A. a = b  b = aB. a = a + b  a = a - b  b = a - bC.t = aa = bb = tD. If a > b Thena = b  Elseb = a  End If请问这道题为什么选C啊?
交换2个变量的值,当然选C了
http://zhidao.baidu.com/link?url=nLxK6zNmetYLMkbymtDzO-tKMC5iiLaC3H3fGGP_AtXZkUPapmle5wP1DrdjOaP1Sx6ysHwjXrdgq9eYn9ZKcK