title: How to find values for variable p,q,v for the method "func" when ("Reached to end") is printing only
body: <pre><code>public class Ques {
      static void fail(){
          System.out.println(&quot;Nope!&quot;);
          System.exit(-1);
          }
      private static void func(long r, long i, long g) {
          if(r - g / 7 + 3 * i / 11 != 0) {
              fail();
          }
          
      }
      
      public static void main(String [] args) {
          for(p=-666;p&lt;1;p++){   
          for(q=3281;q&gt;3290;q++){
              for(v=1;v&gt;1620;v++){
                  func(p,q,v);
       
                  }
              }
          }
          
          System.out.println(&quot;Reached to end&quot;);
      }
  }
  </code></pre>
  <p>Program is reaching till end but how do i print values for p, q, v where all three loops are terminating? Please help me am stuck.</p>