Positive and Negative Number Checker
No attachments for this post
A simple program that I wrote using Microsoft Visual Basic 5 to check if the given integer number by our user is a positive or negative number. The program code is very simple and easy to understand.
Private Sub Command1_Click()
number_value = Val(Text1.Text)
If (number_value >= 0) Then
Label4.Caption = "The given number " & number_value & " is a Positive Number."
Label4.Caption = "The given number " & number_value & " is a Negative Number."
Private Sub Command2_Click()
Text1.Text = ""
Label4.Caption = " "
Comments on this post
No comments have been added for this post.
You must be logged in to make a comment.