示例#1
0
        private void button5_Click(object sender, EventArgs e)
        {
            Mymath m2 = new Mymath();

            int.TryParse(textBox3.Text, out m2.end);
            MessageBox.Show("0부터" + m2.end + "까지의 합은" + m2.sumAll());
        }
示例#2
0
        private void button2_Click(object sender, EventArgs e)
        {
            int.TryParse(textBox1.Text, out int input);
            int.TryParse(textBox2.Text, out int count);

            MessageBox.Show(textBox1.Text + "의" + textBox2.Text + " 곱은" + Mymath.power(input, count));
        }
示例#3
0
        private void button1_Click(object sender, EventArgs e)
        {
            int.TryParse(textBox1.Text, out int input);
            Mymath m = new Mymath();

            MessageBox.Show(textBox1.Text + "의 제곱은" + m.power(input));
        }
示例#4
0
 private void button4_Click(object sender, EventArgs e)
 {
     int.TryParse(textBox3.Text, out int start);
     int.TryParse(textBox4.Text, out int end);
     MessageBox.Show(start + "부터" + end + "까지의 합은" + Mymath.SumAll(start, end));
 }
示例#5
0
 private void button3_Click(object sender, EventArgs e)
 {
     int.TryParse(textBox3.Text, out int end);
     MessageBox.Show("0부터" + end + "까지의 합은" + Mymath.SumAll(end));
 }