samedi 11 août 2018

Visual Studio " } " is being waited, can i fix it?

 private void button1_Click(object sender, EventArgs e)
    {
        int ortlama;
        ortlama = Convert.ToInt32(textBox1.Text);
        if (ortlama < 50) ;
        {
            MessageBox.Show("Kaldın");

        }

        else

        {

            MessageBox.Show("Geçtin");
        }


    }

And it says } is being waited, how can i fix that? I will be crazy. I have written else and it suddenly said You must add } but no need to add } i cant fix it.

Aucun commentaire:

Enregistrer un commentaire