Program to find the Centroid of the triangle
Given the vertices of the triangle. The task is to find the centroid of the triangle:Examples:Â Â Input: A(1, 2), B(3, -4), C(6, -7)Output: (3.33, -3)Input: A(6, 2), B(5, -9), C(2, -7)Output: (6.5, -9) Â Â Approach:Suppose if the vertices of a triangle are (x1, y1) (x2, y2) (x3, y3) then centroid of