daily pastebin goal
85%
SHARE
TWEET

Untitled

a guest Dec 16th, 2018 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 WindowsFormsApp3
  12. {
  13.     public partial class Form3 : Form
  14.     {
  15.         public Form3()
  16.         {
  17.             InitializeComponent();
  18.         }
  19.  
  20.         private void button1_Click(object sender, EventArgs e)
  21.         {
  22.             double a, b, x;
  23.             try
  24.             {
  25.                 a = Convert.ToDouble(textBox1.Text);
  26.                 b = Convert.ToDouble(textBox2.Text);
  27. x= Convert.ToDouble(textBox3.Text);
  28.                 label6.Text = Convert.ToString(a*b*Math.Pow(x,2)-a/(Math.Pow(Math.Sin(x/2),2)));
  29.                 label7.Text = Convert.ToString(a*Math.Pow(2.71,(-Math.Sqrt(a))*Math.Cos(b*x/a)));
  30.                 label12.Text = Convert.ToString(a);
  31.                 label13.Text = Convert.ToString(b);
  32.                 label14.Text = Convert.ToString(x);
  33.             }
  34.             catch
  35.             {
  36.                
  37.                     MessageBox.Show("Проверьте правильность ввода чисел!");
  38.                
  39.             }
  40.         }
  41.  
  42.         private void label12_Click(object sender, EventArgs e)
  43.         {
  44.  
  45.         }
  46.  
  47.         private void button2_Click(object sender, EventArgs e)
  48.         {
  49.             this.Hide();
  50.             Form1 form1 = new Form1();
  51.             form1.Show();
  52.         }
  53.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top