ﳿvb编程语言,Sub过程编程,要代码,谢谢了

2024-11-17 10:53:15
推荐回答(1个)
回答1:

Private Sub IsPrime(ByVal n As Integer, ByRef b As Boolean)
b = True
For i = 2 To Sqr(n)
If n Mod i = 0 Then
b = False
Exit For
End If
Next i
End Sub