for ( int i=0; i<n; i++ )
   {
   out.println(i);
   }