Пример #1
0
        protected void Button3_Click(object sender, EventArgs e)
        {
            Kalkulator k = new Kalkulator();

            int wynik = k.mnozenie(Int32.Parse(TextBox1.Text),
                                   Int32.Parse(TextBox2.Text));

            Label2.Text = "" + wynik;
        }
Пример #2
0
        protected void Button5_Click(object sender, EventArgs e) // Potega
        {
            Kalkulator k = new Kalkulator();

            int wynik;

            Label6.Text = "1";

            for (int i = 0; i < Int32.Parse(TextBox4.Text); i++)
            {
                wynik = k.mnozenie(Int32.Parse(TextBox3.Text),
                                   Int32.Parse(Label6.Text));


                Label6.Text = "" + wynik;
            }
        }