Point on Rectangle Border
Изкарва 77 точки от 100. Не мога да разбера какво греша..
https://softuni.bg/trainings/resources/officedocument/10982/exercise-problem-descriptions-programming-basics-october-2016 В този линк е условието , задача номер 7.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication22
{
class Program
{
static void Main(string[] args)
{
double x1 = double.Parse(Console.ReadLine());
double y1 = double.Parse(Console.ReadLine());
double x2 = double.Parse(Console.ReadLine());
double y2 = double.Parse(Console.ReadLine());
double x = double.Parse(Console.ReadLine());
double y = double.Parse(Console.ReadLine());
if (x == x1 || x == x2 && y > y1 && y < y2 )
{
Console.WriteLine("Border");
}
else if (y == y1 || y == y2 && x > 1 && x < x2)
{
Console.WriteLine("Border");
}
else
{
Console.WriteLine("Inside / Outside");
}
}
}
}