title: c# even number and factorial
body: <p>So I have problem... I need to build program with C# windows form, and calculate with texbox1 and textbox2 factorials and show even numbers in richtextbox, and use FOR cycle, I have builded this solution but it gives me only one number.....It is mind****.... If you know what I mean...
  Any sugestions?</p>
  
  <pre><code>private void button1_Click(object sender, EventArgs e)
      {
          int x = Convert.ToInt32(textBox1.Text);
          int y = Convert.ToInt32(textBox2.Text);
          int fact = 1;
          for (int i = x; i&lt;=y; i++)
          {
              fact = fact * y;
          }
          richTextBox1.Text = fact.ToString();
      }
  </code></pre>
  
  <p>Well In mind I have build this one too, what do you think about it? 
  And maby someone can tell me how to use it?</p>
  
  <pre><code>for (int i = X; i &lt;= Y; i++)
      if (i % 2 == 0)
      {
          fakt = 1;
  
          for (int j = i; j &gt; 0; j--)
              fakt = fakt * j;
      }
  </code></pre>