title: Program that uses while loops to calculate the first n Fibonacci numbers
body: <p>When I run it and input a number it just repeats it over non-stop.  for example if i put a 3 it will do this
  3
  3
  3
  3
  3
  BUT NON STOP</p>
  
  <pre><code>int main()
  {
  int current=0, prev=1, prev2=1, fibnum;
  cout &lt;&lt; "Enter the number of Fibonacci numbers to compute: ";
  cin &gt;&gt; fibnum;
  if (fibnum &lt;=0)
  {
      cout &lt;&lt; "Error: Enter a positive number: ";
  }
  while (fibnum &gt; 0){
      current = prev + prev2;
      prev = prev2;
      prev2 = current;
      current++;
  
      cout &lt;&lt; "," &lt;&lt; fibnum;
      cout &lt;&lt; endl;
  }
  return 0;
  }
  </code></pre>