title: How do you find greatest number among 5 with vb.net?
body: <p>This is code for finding maximum in 3 but i want the code for finding maximum amoung 5:</p>
  
  <pre><code>Dim a, b, c As Integer
  
  a = InputBox("enter 1st no.") 
  b = InputBox("enter 2nd no.") 
  c = InputBox("enter 3rd no.")
  
  If a &gt; b Then 
      If a &gt; c Then 
          MsgBox("A is Greater") 
      Else 
          MsgBox("C is greater") 
      End If 
  Else 
      If b &gt; c Then 
          MsgBox("B is Greater") 
      Else 
          MsgBox("C is Greater")
      End If 
  End If 
  </code></pre>