def main():
    print("\t\t\tA\t\tD")
    print("\t\t\t-----------------")
    print("\t\t\t|\t\t|")
    print("\t\t\t|\t\t|")
    print("\t\t\t|\t\t|")
    print("\t\t\t|\t\t|")
    print("\t\t\t|\t\t|")
    print("\t\t\t-----------------")
    print("\t\t\tB\t\tC")

    ax, ay = map(int, input('Enter the A coordinate (as X Y): ').split())
    bx, by = map(int, input('Enter the B coordinate (as X Y): ').split())
    cx, cy = map(int, input('Enter the C coordinate (as X Y): ').split())
    dx, dy = map(int, input('Enter the D coordinate (as X Y): ').split())

    area = abs(((ax * by) + (bx * cy) + (cx* dy) + (dx * ay)) - ((bx * ay) + (cx * by) + (dx * cy) + (ax * dy)))
    print(f"\n\t**The area for your quadrilateral is {round(area/2, 2)} square unit");
    
if __name__ == '__main__':
    main()

def main():
    print("\t\t\tA\t\tD")
    print("\t\t\t-----------------")
    print("\t\t\t|\t\t|")
    print("\t\t\t|\t\t|")
    print("\t\t\t|\t\t|")
    print("\t\t\t|\t\t|")
    print("\t\t\t|\t\t|")
    print("\t\t\t-----------------")
    print("\t\t\tB\t\tC")

    ax, ay = map(int, input('Enter the A coordinate (as X Y): ').split())
    bx, by = map(int, input('Enter the B coordinate (as X Y): ').split())
    cx, cy = map(int, input('Enter the C coordinate (as X Y): ').split())
    dx, dy = map(int, input('Enter the D coordinate (as X Y): ').split())

    area = abs(((ax * by) + (bx * cy) + (cx* dy) + (dx * ay)) - ((bx * ay) + (cx * by) + (dx * cy) + (ax * dy)))
    print(f"\n\t**The area for your quadrilateral is {round(area/2, 2)} square unit");
    
if __name__ == '__main__':
    main()
