title: Determine, if a given number is a factor of another number (30)
body: <pre><code>package cornett1;
  
  import javax.swing.JOptionPane;
  
  public class ProgramOne {
  
      public static void main(String[] args) {
  
          int nmbr;
          nmbr = Integer.valueOf(JOptionPane.showInputDialog("enter a number less than 1000"));
  
          {
              if ((nmbr % 2) == 0) {
                  System.out.println(nmbr + "Is even.");
              }
              System.out.println(nmbr + "Is odd.");
          }
  
          if ((nmbr % 5) == 0) {
              System.out.print(nmbr + "is a multiple of 5.");
          }
      }
  }
  </code></pre>
  
  <p>Now I need to see, if <code>nmbr</code> is a factor of 30</p>