title: Fibonacci sequence Pseudo-code Java
body: <p>I'm trying to refresh my pseudo-code understanding and wanted to see what the correct way of writing out a Fibonacci number @ n would be.</p>
  
  <p>Given the code:</p>
  
  <pre><code>public class FibAtN{
       public static void main(String args[]){
            int j = 0;
            int k = j;
            int l = 1;
            int n =; /*input*/
  
            for(int i=0;i&lt;n;i++){
                 j=k;
                 k=l;
                 l=j+k;
            }
            System.out.println(j);
      }
  }
  </code></pre>
  
  <p>Would the correct use of Pseudo-code be?</p>
  
  <pre><code>PROGRAM FibonnacciAtN
       INITIALIZE four integers (say: j,k,l,n)
       SET j equal zero, k equal j, l equal 1
       SET n equal to INPUT
       FOR (integer count is less than n, INCREMENT count every loop) DO
            SET j=k, k=l, l=j+k
       PRINT integer j
  </code></pre>
  
  <p>Thanks!</p>