VB新手问题,关于inputbox

来源:百度知道 编辑:UC知道 时间:2024/06/07 23:47:58
dim a%,b%,inttemp%
a=
b=
answer=
if answer=vbyes then
inttemp=a:a=b:b=inttemp
end if
print :print"a=";a,"b=";b
end sub

请是要通过inputbox 输入A和B的值再进行变量交换,二三四行是要填的,请问那个格式要怎么写

dim a%,b%,inttemp%
a=inputbox("输入a")
b=inputbox("输入b")
answer=msgbox("是否交换变量",vbyesno)
if answer=vbyes then
inttemp=a:a=b:b=inttemp
end if
print :print"a=";a,"b=";b
end sub

高级经理-七级,悬赏 00000000000 分,楼上的也来回答,真是好人,,无语!