public static void Main()
string a1;string a2;string b1;string b2;string c1;string c2;int aa1;int aa2;int bb1;int bb2;int cc1;int cc2; int flag = 0;
Console.WriteLine("a1");a1 = Console.ReadLine();Console.WriteLine("a2");a2 = Console.ReadLine();Console.WriteLine("b1");b1 = Console.ReadLine();Console.WriteLine("b2");b2 = Console.ReadLine();Console.WriteLine("c1");c1 = Console.ReadLine();Console.WriteLine("c2");c2 = Console.ReadLine();
aa1 = Int32.Parse(a1);aa2 = Int32.Parse(a2);bb1 = Int32.Parse(b1);bb2 = Int32.Parse(b2);cc1 = Int32.Parse(c1);cc2 = Int32.Parse(c2);
if ((aa1+bb1+cc1)/3==aa1){
if ((aa2+bb2+cc2)/3==aa2){
Console.WriteLine("Утвореною фігурою буде точка!");
if ((cc1 - aa1)*(bb2 - aa2) == (cc2 - aa2)*(bb1 - aa1))
Console.WriteLine("Увореною фігурою буде лінія!");
var z = Math.Sqrt((cc1-bb1)*(cc1-bb1)+(cc2-bb2)*(cc2-bb2));
var y = Math.Sqrt((aa1-bb1)*(aa1-bb1)+(aa2-bb2)*(aa2-bb2));
var x = Math.Sqrt((cc1-aa1)*(cc1-aa1)+(cc2-aa2)*(cc2-aa2));
Console.WriteLine("Дана фігура буде трикутником!");