title: The print statement after for loop is not printing, why?
body: <pre><code>//'main' method must be in a class 'Rextester'.
  //Compiler version 1.8.0_111
  
  import java.util.*;
  import java.lang.*;
  
  class Rextester
  {  
      public static void main(String args[])
      {
          Scanner in=new Scanner(System.in);
          int n=in.nextInt();
          int number;
          for(int i=0;i&lt;=n;i++){
              int count=0;
              number=in.nextInt();
              while(number!=0){
                  count++;
                  number=number/10;
                  }System.out.println(count);
  
          }System.out.println(n);//this does not get printed
      }
  }
  </code></pre>
  
  <p>n should print the n that is typed in.
  Why is n not getting printed after for loop?
  it gets printed inside the for loop </p>