title: While Loop suggestion?
body: <p>Write a while loop that selects and displays a random set of two numbers (1-99) that when added together are evenly divisible by 7. Continue until the user says they are "done".</p>
  
  <p>I don't know how to makes those two random numbers divisible evenly with 7 
  I have tried if statement but it still wouldn't work.</p>
  
  <p>This is what I got so far:</p>
  
  <pre><code>public static void main(String []args)
  {
      Scanner scan= new Scanner (System.in);
      String answer="Yes";
  
      System.out.println("Run the program?");
      answer= scan.nextLine();
  
  
      while(!answer.equalsIgnoreCase("done") )
      {
          int a=1;
          int b=1;
          a=(int) (Math.random()*99) + 1;
          b=(int) (Math.random()*99) + 1;
          if ((a + b) % 7 == 0) 
          {
              System.out.println(a + " + " + b + "= " +(a+b));
          }
  
          System.out.println("Do you want to continue?");
          answer= scan.nextLine();
      }
  </code></pre>