Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace kdamultipl
- {
- public partial class Form1 : Form
- {
- double a;
- double b;
- double sum;
- public Form1()
- {
- InitializeComponent();
- }
- private void textBox1_TextChanged(object sender, EventArgs e)
- {
- a = Convert.ToInt32(Console.ReadLine());
- }
- private void textBox2_TextChanged(object sender, EventArgs e)
- {
- b = Convert.ToInt32(Console.ReadLine());
- }
- private void Form1_Load(object sender, EventArgs e)
- {
- }
- private void textBox3_TextChanged(object sender, EventArgs e)
- {
- }
- private void button1_Click(object sender, EventArgs e)
- {
- a = Double.Parse(textBox1.Text);
- b = Double.Parse(textBox2.Text);
- sum = (a + b) / 2;
- textBox3.Text = (sum).ToString();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement