title: Lab 10.1: computer science assignment
body: <p>In case I haven't already asked about this one, here are the instructions, as always:</p>
  
  <p>The <code>int t</code> contains an integer between 1 and 50 (inclusive). Write code that outputs the<br>
      number in words and stores the result in the String inwords. For example, if t is 35 then<br>
      inwords should contain "thirty five".</p>
  
  <p>Here is my code:</p>
  
  <pre><code>int t = ; 
  String inwords;
  String[] Numbers = 49;
  
  for (int i = 0; i &lt; 50; i++){
      if (i % 10 = 0)
      if (i / 10 == 1)
              System.out.println("ten")
          else if (i / 10 == 2)
              System.out.println("twenty")
          else if (i / 10 == 3)
              System.out.println("thirty")
          else if (i / 10 == 4)
              System.out.println("
  }
  </code></pre>
  
  <p>What I'm assuming is the issue is that I don't have a way of short-cutting it. I may be wrong but is there more of an implementable pattern than I already see? I know my code isn't complete, but I need to know if there's a pattern I'm not seeing here. I mean, how would I implement it if I already find myself typing out every single division sign. You saw how long that code was getting didn't you?</p>
  
  <p>All help appreciated</p>
  
  <p>PS, hope I'm not asking too much about my school labs.</p>