CODE FOR ADDITION IN DOTNET USING C#
I NEED THE CODE FOR ADDITION
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
boycoto132 reputationPosted May 3, 2013, 1:24 AM EDT
Satyapriya NayakRank #47 · 31.5K reputationPosted May 3, 2013, 4:00 AM EDT
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Add
{
public partial class Form2 : Form
{
public Form2()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
int i, j,k;
int.TryParse(textBox1.Text, out i);
int.TryParse(textBox2.Text, out j);
int.TryParse(textBox3.Text, out k);
int result = i + j + k;
label1.Text = result.ToString();
}
}
}