Exemple #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());
        }
Exemple #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));
        }
Exemple #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));
        }
Exemple #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));
 }
Exemple #5
0
 private void button3_Click(object sender, EventArgs e)
 {
     int.TryParse(textBox3.Text, out int end);
     MessageBox.Show("0부터" + end + "까지의 합은" + Mymath.SumAll(end));
 }