Есть рабочая задача,в которой задаешь координаты x, y ,R (имитация выстрела) и при попадании тебя об этом уведомит программа. Нужно сделать этот код проще,чтобы формула была меньше.

С#:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Primer
{
class Program
{
static void Main(string[] args)
{
double x, y, R, i, t=1;
while (true)
{
try
{
for (i = t; i <=5 ; i++)
{
t = i;
Console.Clear();
Console.WriteLine($"Выстрел №{i}.");
Console.WriteLine("Введите координату x: ");
x = Convert.ToDouble(Console.ReadLine());
Console.WriteLine("Введите координату y: ");
y = Convert.ToDouble(Console.ReadLine());
Console.WriteLine("Введите радиус: ");
R = Convert.ToDouble(Console.ReadLine());
if (((x >= -R && x <= 0) && (y <= R && y >= 0)) || ((x >= 0 && x <= R) && (y >= -R && y <= 0)))
{
if ((x + R) * (x + R) + (y - R) * (y - R) >= R * R &&
(x - R) * (x - R) + (y + R) * (y + R) >= R * R)
{
Console.WriteLine(" Точка в заштрихованной области");
}
}
else Console.WriteLine(" Точка не попадает в заштрихованную область");
Console.ReadKey(true);
}
break;
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
}
}
}
}