STUDI FORUM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Buatlah program menghitung sisi miring (rumus Phitagoras) Input : a, b Output : c = Sqr(a^2 + b^2)

Go down

Buatlah program menghitung sisi miring (rumus Phitagoras) Input : a, b Output : c = Sqr(a^2 + b^2) Empty Buatlah program menghitung sisi miring (rumus Phitagoras) Input : a, b Output : c = Sqr(a^2 + b^2)

Post  Adhitya warman Thu Apr 19, 2012 4:33 am

Private Sub Command1_Click()
a = Val(Text1.Text)
b = Val(Text2.Text)
c = Sqr(a ^ 2 + b ^ 2)
Text3.Text = c
End Sub

Private Sub Command2_Click()
Text1.Text = “”
Text2.Text = “”
Text3.Text = “”
End Sub


Private Sub Command3_Click()
Unload Me
End Sub


Adhitya warman

Jumlah posting : 10
Join date : 16.04.12
Lokasi : BENGKULU

Kembali Ke Atas Go down

Kembali Ke Atas

- Similar topics

 
Permissions in this forum:
Anda tidak dapat menjawab topik