VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Area of a Triangle using the semi-perimeter method

by Varun Godbole (15 Submissions)
Category: Math/Dates
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Sat 11th November 2006
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Area of a Triangle using the semi-perimeter method

Rate Area of a Triangle using the semi-perimeter method



a = Val(side1.Text)
b = Val(side2.Text)
c = Val(side3.Text)

x = a + b + c
s = x / 2
smi.Text = Str$(s)
ar = s * z * m
area = ar ^ (0.5)

area.Text = Str$(area)

End Sub

Private Sub Option1_Click()
s1 = "1st Side"
s2 = "2nd Side"
s3 = "3rd Side"
s = "Semi - preimeter"
a = "Area"

Label1.Caption = s1
Label2.Caption = s2
Label3.Caption = s3
Label4.Caption = s
Label5.Caption = a

End Sub


Download this snippet    Add to My Saved Code

Area of a Triangle using the semi-perimeter method Comments

No comments have been posted about Area of a Triangle using the semi-perimeter method. Why not be the first to post a comment about Area of a Triangle using the semi-perimeter method.

Post your comment

Subject:
Message:
0/1000 characters