It is not possible to display the variable in the TextBox after calling the method. What to do?
private void button1_Click(object sender, EventArgs e) { int x = 1; int n = 0; for (x = 0; x < 10; x++) n = Even(x); textBox1.Text = n.ToString; } Gives an error on n.ToString