Dim ncount=0n=inputbox("enter a number")For i=2 to n-1If n mod i=0 Thencount=count+1End IfNextIf (count/2)<> 0 Thenprint "given number is normal number"elseprint "given number is prime number"End If
Dim n
ReplyDeletecount=0
n=inputbox("enter a number")
For i=2 to n-1
If n mod i=0 Then
count=count+1
End If
Next
If (count/2)<> 0 Then
print "given number is normal number"
else
print "given number is prime number"
End If