title: Convert a while loop to for loop in pseudo code
body: <p>I need to convert this loop to a for loop.</p>
  
  <pre><code>Input:A number k ≥ 0 
  Output: Output ?? 
  x←0
  y←0
  while x≤k do 
  x←x+1 
  y←y+3
  return y
  </code></pre>
  
  <p>Also can you describe me the output of this?</p>
  
  <p>Thank you.</p>