using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; us

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; us

Post by answerhappygod »

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
int a, b,sonuc=0;
a = Convert.ToInt32(textBox1.Text);
b = Convert.ToInt32(textBox2.Text);
sonuc = a + b;
label3.Text = sonuc.ToString();
}
private void button2_Click(object sender, EventArgs e)
{
int a, b, sonuc = 0;
a = Convert.ToInt32(textBox1.Text);
b = Convert.ToInt32(textBox2.Text);
sonuc = a - b;
label3.Text = sonuc.ToString();
}
private void button3_Click(object sender, EventArgs e)
{
int a, b, sonuc = 0;
a = Convert.ToInt32(textBox1.Text);
b = Convert.ToInt32(textBox2.Text);
sonuc = a / b;
label3.Text = sonuc.ToString();
}
private void button4_Click(object sender, EventArgs e)
{
int a, b, sonuc = 0;
a = Convert.ToInt32(textBox1.Text);
b = Convert.ToInt32(textBox2.Text);
sonuc = a*b;
label3.Text = sonuc.ToString();
}
}
}
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply