title: Convert Numbers to Words using only SELECT CASE in vb.net
body: <p>I'm new in the environment of vb.net. So, our professor asks us to convert numbers to words using only Select Case. We are only allowed using SELECT CASE -- If, If else, arrays and such are NOT allowed. The problem is I do it in a "hard code" way and I want it to be more "clean" and efficient and maximum numbers are up to 5 digits. I hope someone can give me bright ideas on this. </p>
  
  <pre><code>    Dim one As String = "One"
      Dim two As String = "Two"
      Dim three As String = "Three"
      Dim four As String = "Four"
      Dim five As String = "Five"
      Dim six As String = "Six"
      Dim seven As String = "Seven"
      Dim eight As String = "Eight"
      Dim nine As String = "Nine"
      Dim ten As String = "Ten "
      Dim twenty As String = "Twenty "
      Select Case input &gt;= 20 And input &lt;= 99
          Case True
              Select Case input
                  Case 20
                      lblOutput.Text = twenty
                  Case 21
                      lblOutput.Text = twenty + one
                  Case 22
                      lblOutput.Text = twenty + two
                  Case 23
                      lblOutput.Text = twenty + three
  </code></pre>