title: I get the error "Output Limit Exceeded" on this below code
body: <p>here's the code i made for finding jumping numbers less than or equal to a given no. it shows error "Output Limit Exceeded"</p>
  
  <pre><code>int main() {
  int t;
  cin&gt;&gt;t;
  while(t--)
  {
      long long int n ,rem,temp;
      cin&gt;&gt;n ;
      for(int i=0 ; i&lt;=n ; ++i)
      {
          if(i&lt;=10)
          cout&lt;&lt;i&lt;&lt;" ";
          else
          {   
              temp=i;
             do                   
              {
                 rem=i%10;
                 i/=10;
              }while(abs(rem-i%10)==1);
              if(i==0)
              {
                  cout&lt;&lt;temp&lt;&lt;" "; // printing jumping no.s
              }
          }
      }
      cout&lt;&lt;"\n";
  }
  return 0;
  </code></pre>
  
  <p>}</p>