title: Displaying all the Odd number between 1 - 99 in java using Nested For Loop
body: <p>Currently I'm only able to display odd numbers of 1 3 5 7 9. However, I would like to display all the odd numbers from 1 - 99 with 9 rows and 5 col. May I know how am I able to display from 11 onwards rather than just 9 rows of 1 3 5 7 9. </p>
  
  <p>Below is the code I'm stuck with.</p>
  
  <pre><code>public static void main(String args[])
  {
      for (int i=1; i&lt;=9; i++)
      {
          for (int j=1; j&lt;=10; j++)
          {
              if (j%2 !=0)
              System.out.print(j + " " );
          }
          System.out.println();
      }
  }
  </code></pre>