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 USING SARRUS METHOD

print("Enter the coordinates of point A")
x1=int(input("X = "))
y1=int(input("Y = "))
print("Enter the coordinates of point B")
x2=int(input("X = "))
y2=int(input("Y = "))
print("Enter the coordinates of point C")
x3=int(input("X = "))
y3=int(input("Y = "))
print("Enter the coordinate of point D")
x4=int(input("X = "))
y4=int(input("Y = "))
A=(abs(x1*(y2-y4)+x2*(y3-y1)+x3*(y4-y2)+x4*(y1-y3)))*0.5
print("(",x1,",",y1,")"," ","(",x2,",",y2,")")
print(' A____________B')
print(' |            |')
print(' |            |')
print(' |            |')
print(' C____________D',)
print("(",x3,",",y3,")"," ","(",x4,",",y4,")")
print("\n","Area of the quadilateral =",A)