题型:综合题 题类:常考题 难易度:普通
浙江省临安市昌化中学2019届高三上学期信息技术期末模拟试卷
Private Sub Command1_Click()
Dim s As String, n As Integer
Dim i As Integer, m As Integer
Dim f As Boolean
s = Text1.Text
n = Len(s)
For i = 1 To n
t = Mid(s, i, 1)
If t >= "A" And t <= "Z" Then
m = m + Asc(t) - 38
ElseIf t >= "a" And t <= "z" Then
m =
End If
Next i
f = True
For i = 2 To m - 1
If m Mod i = 0 Then f = False
Next i
IfThen
Label1.Caption = "It is a prime word."
Else
Label1.Caption = "It is not a prime word."
End If
End Sub
试题篮