Printing answers for FizzBuzz using winforms
<p>I have tried to do the FizzBuzz question using the C# and I could do it as the message boxes. But I need to print the answers one by one in a text box using winforms. How can I do this. I have stated the code with this. Please can you help me.</p>

<pre><code>private void button8_Click(object sender, EventArgs e)
{
   int x;
   for (x = 1; x &lt; 16; x++)
    {
        if (x % 3 == 0 &amp;&amp; x % 5 ==0)
        {
            MessageBox.Show("FizzBuzz");
        }
        else if (x % 3 == 0)
        {
            MessageBox.Show("Fizz");
        }
        else if (x % 5 == 0)
        {
            MessageBox.Show("Buzz");
        }
        else
        {
            MessageBox.Show(x.ToString());
        }
    }
}
</code></pre>
