Dim n as integer
…
If them
MsgBox"恭喜,本站有车!"
Else
MsgBox"很遗憾,本站车已经借完!"
End If
…
划线处应填写的条件表达式是( )
a=14
b=30
select case b\10 ‘“\”是整除,运算结果只保留整数部分。
Case 0
c=a+b
Case 1 to 9
c=a*10+b
Case 10 to 99
c=a*100+b
End select
Print c
If(a>b) Then
Print a ‘如果a>b,输出变量a的值
Else
Print b ‘否则,输出变量 b的值
End If ‘结束If分支
x=5
If x>5 Then
y=x^2-10
Else
y=4*x
End If
该程序段运行后,变量 y 的值是( )。
A: B:“”; 是添加的“输入”工具箱中的指令块,该指令块的优先级要(填“高于”或“低于”)“无线循环”指令块。
x=6
If x <= 5 Then
y = 2 * x + 1
Else
y = x / 2
End If
s=0
for i in range(101):
If :
s=s+i
print (s)
if i==1:
s=1
a=10
s=0
if a>5:
s=s+a
print(s)
print("请输入3个数:")
x=int(input("x="))
y=int(input("y="))
z=int(input("z="))
temp=0
if x>y:
temp=y
y=x
x=temp
if x>z:
temp=z
z=x
x=temp
if y>z:
temp=z
z=y
y=temp
print("这3个数新序列是:",x,y,z)
Import math
x =100
if x<0 :
y = abs(x)
else:
y=math. sqrt(x)