Problems
Write a program that receives the integer coordinates of the three vertices of a triangle, calculates the coordinates of the triangle's centroid as floating-point numbers, and prints them rounded to one decimal place.
Input
x1 y1 x2 y2 x3 y3
Example
0 0 1 2 10 15
(3.7, 5.7)
Source
자기주도C언어프로그래밍