Guest User

Untitled

a guest
Oct 9th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  2.         Dim age As Double = CDbl(txtAge.Text)
  3.         Dim rest As Double = CDbl(txtRHR.Text)
  4.         txtTHR.Text = CStr(THR(age, rest))
  5.  
  6.     End Sub
  7.     Function THR(ByVal age As Double, ByVal rest As Double) As Double
  8.         THR = Math.Round((((220 - age) - rest) * 0.6) + rest)
  9.         Return THR
  10.     End Function
Add Comment
Please, Sign In to add comment