title: Finding factors of a given integer
body: <p>I have something like this down:</p>
  
  <pre><code>int f = 120;
  for(int ff = 1; ff &lt;= f; ff++){
      while (f % ff != 0){            
  }
  </code></pre>
  
  <p>Is there anything wrong with my loop to find factors? I'm really confused as to the workings of for and while statements, so chances are they are completely wrong.</p>
  
  <p>After this, how would I go about assigning variables to said factors?</p>