Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Exercise #6

Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles Button1.Click
If TextBox1.Text = 119 Or TextBox1.Text = 179 Or TextBox1.Text = 221 Or TextBox1.Text =
780 Then
Label2.Text = "Your car is defective. Please have it fixed."
ElseIf TextBox1.Text > 189 Then
Label2.Text = "Your car is defective. Please have it fixed."
ElseIf TextBox1.Text > 0 Then
Label2.Text = "Your car is safe."
End If
End Sub
End Class

You might also like