예제 #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));
 }