a program to find the greater numbers among three numbers in visual basics
Answers
Answer:
Private Sub Command1_Click()
Private Sub Command1_Click()Dim a, b, c As Integer
Private Sub Command1_Click()Dim a, b, c As Integera = Val(Text1.Text)
Private Sub Command1_Click()Dim a, b, c As Integera = Val(Text1.Text)b = Val(Text2.Text)
Private Sub Command1_Click()Dim a, b, c As Integera = Val(Text1.Text)b = Val(Text2.Text)c = Val(Text3.Text)
Private Sub Command1_Click()Dim a, b, c As Integera = Val(Text1.Text)b = Val(Text2.Text)c = Val(Text3.Text)If a > b And a > c Then
Private Sub Command1_Click()Dim a, b, c As Integera = Val(Text1.Text)b = Val(Text2.Text)c = Val(Text3.Text)If a > b And a > c Then Label4 = "Largest Number = " & a
Private Sub Command1_Click()Dim a, b, c As Integera = Val(Text1.Text)b = Val(Text2.Text)c = Val(Text3.Text)If a > b And a > c Then Label4 = "Largest Number = " & aElseIf b > c Then
Private Sub Command1_Click()Dim a, b, c As Integera = Val(Text1.Text)b = Val(Text2.Text)c = Val(Text3.Text)If a > b And a > c Then Label4 = "Largest Number = " & aElseIf b > c Then Label4 = "Largest Number = " & b
Private Sub Command1_Click()Dim a, b, c As Integera = Val(Text1.Text)b = Val(Text2.Text)c = Val(Text3.Text)If a > b And a > c Then Label4 = "Largest Number = " & aElseIf b > c Then Label4 = "Largest Number = " & bElse
Private Sub Command1_Click()Dim a, b, c As Integera = Val(Text1.Text)b = Val(Text2.Text)c = Val(Text3.Text)If a > b And a > c Then Label4 = "Largest Number = " & aElseIf b > c Then Label4 = "Largest Number = " & bElse Label4 = "Largest Number = " & c
Private Sub Command1_Click()Dim a, b, c As Integera = Val(Text1.Text)b = Val(Text2.Text)c = Val(Text3.Text)If a > b And a > c Then Label4 = "Largest Number = " & aElseIf b > c Then Label4 = "Largest Number = " & bElse Label4 = "Largest Number = " & cEnd If
Private Sub Command1_Click()Dim a, b, c As Integera = Val(Text1.Text)b = Val(Text2.Text)c = Val(Text3.Text)If a > b And a > c Then Label4 = "Largest Number = " & aElseIf b > c Then Label4 = "Largest Number = " & bElse Label4 = "Largest Number = " & cEnd IfEnd Sub
Answer:
- Text = {number1, number2, number3, number4, number5}.Max.ToString will display the value of the largest number.