title: Display five numbers per line in Java
body: <p>//I want to display all numbers divisible by 3 and 4 within a range entered by user and five numbers 
  per line but my code doesn't work.I made a mistake in second for but I can't figure out.Please help me. </p>
  
  <pre><code>public static void main(String[] args) {
  
      Scanner input = new Scanner(System.in);
      System.out.println("Enter lowest value:");
      int lowest = input.nextInt();
  
      System.out.println("Enter upper value:");
      int upper = input.nextInt();
  
      for(int i = lowest; lowest &lt;= upper; lowest++){
          for(int j = 0; j &lt; 5; j++ ){
              if(lowest % 3 == 0 &amp;&amp; lowest % 4 == 0){
                  System.out.print(lowest + "  ");
              }
          }
          System.out.println();   
      }
  }  
  </code></pre>