Need a Lil help with this program
Go to solution
Solved by JamieF,
-snip-
-snip-
I'm bored so here's the code:
Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim num1, num2, num3 As Integer Randomize() num1 = Int(Rnd() * 50) + 1 num2 = Int(Rnd() * 50) + 1 num3 = Int(Rnd() * 50) + 1 TextBox1.Text = num1.ToString() TextBox2.Text = num2.ToString() TextBox3.Text = num3.ToString() If num1 + num2 = num3 Then MessageBox.Show("Correct") Else MessageBox.Show("Incorrect") End If End SubEnd Class
Strange and kinda useless program though especially if you use numbers up to 50.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now