VB 6.0 If x Then Print x Else Print x + 1
Dim x
If x Then Print x Else Print x + 1
输出结果是1
人气:278 ℃ 时间:2019-11-17 07:19:15
解答
如果x大于0的时候条件成立,所以输出x的值,否则的话x就0了,输出的结果是0+1=1.比如:dim xif x then print x else Print x (结果0)dim xx=2if x then print x else Print x+1 (结果2)dim xif x then print x else Pri...
推荐
- A=2:b=1:c=0 if a then if b then if c then Print “1” else Print “2” else Print “3” else Print
- VB中判断奇偶 y=IIf(x mod 2,1,0) If y Then Print "奇数" Else Print "偶数" End If
- X=5 y=-20 If not x>0 then x=y-3 else y=x+3 print x-y;y-x end if运行结果
- A="abcd" B="bcde" E=right(a,3) F=mid(b,2,3) if e
- 函数f(x)=a^x/(1+a^x) -a是奇函数 则实数a的值为?
- 若A>0,B>0,C
- 在三角形中,角A,B,C对边为a,b,c角A,B,C成等差数列.求cosB的值?若边a,b,c成等比求sinAsinC的值?
- 我应该对当前的生活比较满意.这样说可以吗?I should be satisfied with current life.请高手指点,谢谢
猜你喜欢