Computer Science, asked by kabisimadgp, 4 months ago

a program to find the greater numbers among three numbers in visual basics​

Answers

Answered by Anisha5119
5

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

Answered by Legend42
5

Answer:

  • Text = {number1, number2, number3, number4, number5}.Max.ToString will display the value of the largest number.
Similar questions