Advertisement
Milaj

Untitled

Mar 9th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Public Class Form1
  2.     Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
  3.         'Даны два действительных числа(1,2).
  4.        'Если(1 <= 2)
  5.        'Заменить первое нулем.
  6.        Dim one, two As Double
  7.         one = TextBox1.Text
  8.         two = TextBox2.Text
  9.         If (one <= two) Then
  10.             TextBox1.Text = "0"
  11.             Label1.Text = "<="
  12.         Else
  13.             Label1.Text = ">"
  14.         End If
  15.     End Sub
  16. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement