Support our Blind Hand Charity by donating at 9818291723. Your contribution has the potential to bring about significant positive change for humanity.

Search This Blog

MY PROGRAMMES

Thursday, April 6, 2023

AREA OF A QUADILATERAL THROUGH HERON'S FORMULA

print("Enter the sides and diagonal of quadilaterals")
s1=int(input("Enter the side AB = "))
s2=int(input("Enter the side BC = "))
s3=int(input("Enter the side CD = "))
s4=int(input("Enter the side AD = "))
s5=int(input("Enter the diagonal AC = "))
S1=(s1+s2+s5)/2
S2=(s3+s4+s5)/2
a1=(S1*(S1-s1)*(S1-s2)*(S1-s5))**0.5
a2=(S2*(S2-s3)*(S2-s4)*(S2-s5))**0.5
a=a1+a2
print('A____________B')
print('|                            |')
print('|                            |')
print('|                            |')
print('D____________C',"\n")
print("Length of AB =",s1)
print("Length of BC =",s2)
print("Length of CD =",s3)
print("Length of AD =",s4)
print("Length of AC =",s5)
print("\n","Area of triangle ABC =",a1)
print("\n","Area of triangle BCD =",a2)
print("\n","Area of ABCD =",a)