Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         Dim diam As Double
  2.         diam = Double.Parse(TextBox1.Text)
  3.         '(diameter/2 ^2*3.14)/14.125
  4.        Dim areaOfSlice As Double
  5.         areaOfSlice = ((diam / 2) ^ 2 * 3.14)
  6.         Dim derp As Double = 14.25
  7.         areaOfSlice = areaOfSlice / derp
  8.         TextBox2.Text = areaOfSlice.ToString()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement