title: Fibbonacci sequence using for loop java
body: <p>Can someone explain to me how to store the previous two fibbonnaci numbers it would help alot in this problem.</p>
  
  <pre><code>public static void main(String[] args) {
      int k = 0;
      for (int x = 1; x &lt; 13; x++) {
  
          if (k &gt; 2) {
              k = (k - 1) + (k - 2);
          }
          System.out.print(k+" ");
          k++;
      }
  
  }
  </code></pre>