> 其他 >
vb输入1个整数 判断能否被3和7整除,若能输出A 不能输出B
我需要正确的代码.
人气:314 ℃ 时间:2019-09-09 18:02:41
解答
pravite sub command1_Click()
dim n%
n=inputbox("请输入一个整数","输入整数")
if n mod 3=0 and n mod 7=0 then
print "A"
else
print "B"
end if
end sub
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版