This Program to calculate prime number tween two range.
The source code are give below :
====================Source Code=======================
Private Sub Command1_Click()
Dim i As Integer, j As Integer, llimit As Integer, uplimit As Integer
llimit = Val(Text1)
uplimit = Val(Text2)
For i = llimit To uplimit
For j = 2 To uplimit - 1
If (i Mod j = 0) Then
Exit For
End If
Next j
If (i = j) Then
Print i
End If
Next i
End Sub
Thanks for watching this video
======================================================
Previews video is here:
• How to find prime number using Visual basi...