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
x=Val(Text1. Text)
If x<=2 Then
y=2
Else
If x<=3 Then
y=3
Else
y=4
End If
End If
x=6
If x <= 5 Then
y = 2 * x + 1
Else
y = x / 2
End If
If x<=12 Then
y=2.85*x
____
y=2.85*12+(x-12)*2.85*2
End if
count=0 #拥于记录试错的次数
rightname=“admin”
rightpasswd=“admin123”
while :#只允许试错3次
name=input(“请输入用户名:”)
passwd=input(“请输入密码:”)
if name==rightname passwd==rightpasswd:
print(“登录成功!”)
#如果登录成功,则直接跳出循环
else:
print(“登录失败!”)
#试错次数+1
else:
print(“登录次数超过三次,请稍后登录”)
x=4
ifx==5:
print("优秀")
elif x==4:
print("良好")
elif x==3:
print("及格")
else:
print("不及格")
d=
if d>0 then
x1= (-b + Sqr(d)) / (2 * a)
x2=
text4.text=str(x1)
text5.text=str(x2)
label6.caption=“有两个不同的实数根”
else
if then
x1=(-b)/(2*a)
x2=x1
text4.text=str(x1)
text5.text=str(x2)
label6.caption=“有两个相同的实数根”
else
text4.text=
text5.text=""
label6.caption=
end if
end if
x=5
y=-6
If Not x>0 Then x=y-3 Else y=x+3
Print x-y; y-x
a=10, i=10
If i>10 then
a=a+i
Else
a=a-i
End if
a=int(input("请输入买苹果的斤数:")
if :
s=10*a
else:
s=8*a
print("苹果费用:"+str(s))
x=4 y=3
if x>y:
print(x)
else:
print(y)
屏幕上输出的内容是()
chengji = int( input("请输入百分成绩"))
if chengji >= 85:
print("成绩为:优秀")
else:
print("成绩为:良好")
If(a>b)Then
Print a '如果a>b,输出变量a的值
Else
Print b '否则,输出变量 b的值
End If '结束If分支