public static void Main()
Console.WriteLine("Въведете x1");
var x1 = double.Parse(Console.ReadLine());
Console.WriteLine("Въведете y1");
var y1 = double.Parse(Console.ReadLine());
Console.WriteLine("Въведете x2");
var x2 = double.Parse(Console.ReadLine());
Console.WriteLine("Въведете y2");
var y2 = double.Parse(Console.ReadLine());
Console.WriteLine("Въведете x");
var x = double.Parse(Console.ReadLine());
Console.WriteLine("Въведете y");
var y = double.Parse(Console.ReadLine());
if (((x == x1 || x == x2) &&
(y >= y1) && ((y <= y2)) &&
((x >= x1) && (x <= x2))))
{Console.WriteLine("Точката е върху страната");}
{Console.WriteLine("Точката е извън правоъгълника");}