Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 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 WindowsFormsApplication3
  12. {
  13. public partial class Form1 : Form
  14. {
  15. public Form1()
  16. {
  17. InitializeComponent();
  18. }
  19.  
  20. private void button1_Click(object sender, EventArgs e)
  21. {
  22. double d, x, x1, x2, x3;
  23.  
  24.  
  25. x = Convert.ToDouble(textBox2.Text);
  26. x1 = Convert.ToDouble(textBox3.Text);
  27. x2 = Convert.ToDouble(textBox4.Text);
  28. x3 = Convert.ToDouble(textBox5.Text);
  29.  
  30. d = ((8 - x2) / (x - 9)) - ((4 * x1 - 1) / x3);
  31.  
  32. textBox1.Text = Convert.ToString(d);
  33. }
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement