题型:填空题 题类:常考题 难易度:普通
浙教版初中信息技术九年级上学期期末试卷(10)
若x中的值为2,4,6,则打印“x的值为2,4,6”;
若x中的值为10到20之间的数,则打印“x的值为10~20”;
若x中的值为大于20的数,则打印“x 的值大于20”;
否则,打印“x不在范围内”;
Private Sub Command1_Click()
x = Val(Text1.Text)
Select Case x
Case
Print "x的值为2,4,6"
Case
Print "x的值为10~20"
Case
Print "x的值大于20"
Print "x不在范围内"
End Select
End Sub
a=10 b=5 if(a<<b): print("a比b小") |
程序代码如下: x=float(input("您的体温是:")) if ① : print("欢迎您进入校园") else : ② ("请您进入隔离区") |
n=float(input("请输入用电量(千瓦时): ")) if n<0: print("输入错误,请重新输入") Elif n<50: print("你的电费是: ",n*0.5) else: print("你的电费是: ",n*0.6) |
试题篮