Advertisement
punidota

Untitled

Sep 11th, 2015
412
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.17 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10.  
  11. namespace kdamultipl
  12. {
  13.     public partial class Form1 : Form
  14.     {
  15.         int a;
  16.         int b;
  17.         int c;
  18.         int sum;
  19.         public Form1()
  20.         {
  21.             InitializeComponent();
  22.          
  23.         }
  24.  
  25.         private void textBox1_TextChanged(object sender, EventArgs e)
  26.         {
  27.            
  28.             a = Convert.ToInt32(Console.ReadLine());
  29.         }
  30.  
  31.         private void textBox2_TextChanged(object sender, EventArgs e)
  32.         {
  33.  
  34.             b = Convert.ToInt32(Console.ReadLine());
  35.         }
  36.  
  37.         private void Form1_Load(object sender, EventArgs e)
  38.         {
  39.          
  40.          
  41.            
  42.         }
  43.  
  44.         private void button1_Click(object sender, EventArgs e)
  45.         {
  46.             sum = a + b + c;
  47.             Console.WriteLine();
  48.         }
  49.  
  50.         private void textBox3_TextChanged(object sender, EventArgs e)
  51.         {
  52.             c = Convert.ToInt32(Console.ReadLine());
  53.         }
  54.     }
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement