Professional Documents
Culture Documents
Button1.Click
Dim a,g,m,s,sn,cn,tg,ct,sc,cs,as single
g = TextBox1.Text
m = TextBox2.Text
s = TextBox3.Text
a = (g + m / 60 + s / 3600) * 3.141592 / 180
sn = Math.Sin(a)
cn = Math.Cos(a)
tg = sn / cn
ct = cn / sn
sc = 1 / cn
cs = 1 / sn
ListBox1.Items.Add(sn)
ListBox1.Items.Add(cn)
ListBox1.Items.Add(tg)
ListBox1.Items.Add(ct)
ListBox1.Items.Add(sc)
ListBox1.Items.Add(cs)
End Sub