PRAVOUGLI TROUGAO

Private Sub Command1_Click() Dim a As Double Dim b As Double Dim c As Double Dim P As Double If Text1 = "" Or Text2 = "" Or Text3 = "" Then MsgBox "Morate unijeti neke podatke", vbExclamation Else a = Text1 b = Text2 c = Text3 If c * c = a * a + b * b Then P = (a * b) / 2 Text4 = P Else MsgBox "Unseni brojevi ne čine stranice pravouglog trougla", vbInformation End If End If End Sub Private Sub Command2_Click() Text1 = "" Text2 = "" Text3 = "" Text4 = "" End Sub Private Sub Command3_Click() Unload Me End Sub

Sign up to vote on this title
UsefulNot useful