title: Scheme program to find factors of a given number
body: <p>I have recently started learning scheme and to test my skill I decided to design a program which would print out all factors for a given number.</p>
  
  <p>However, the program is not returning any output. I do not know the reason since I think I have checked the condition for division pretty well.</p>
  
  <p>Here is my code. Where does the problem lie? I am not able to pinpoint it.</p>
  
  <pre><code>(define 
      (factors n f)
      (if (= 0 (remainder n f) )
          f )
      (if (&lt; f n) 
          (factors n (+ f 1))))
  </code></pre>
  
  <p>The name of the procedure is factors. It takes two input numbers: <code>n</code> and <code>f</code>. <code>N</code> is the number for which the factors have to be found. <code>F</code> is the number from which factors of <code>n</code> will be printed.</p>