dim money as integer
if check1=1 then money=money+10
if check2=1 then money=money+20
if check3=1 then money=money+100
msgbox str(money)+"元"
这里为什么要定义一个变量来存储计算结果呢?直接在msgbox里面输出数值加上“元”不可以吗?
这边不用变量 就不知道之前输出的是多少,
点赞
扫一扫分享朋友圈
二维码
分享
你确定要删除这个问题吗?