title: How do I give parameters to a method?
body: <p>I wrote this code:</p>
  
  <pre><code>def sumeven (i)
    result = 0
    while i &lt; 100
      if i % 2 == 0
        result += i
      end
      i += 1
    end
    result
  end
  </code></pre>
  
  <p>How do I give the <code>i</code> for the equation?  When I run the equation in the terminal (mac), I get no output because I'm unable to figure out how to substitute the <code>i</code> for a number. Substituting the "i" with a number in the text editor still gives no output. </p>