3.Floating Equality
Здравейте .
На моята конзола върви на 100%. В Judge ми дава 0/100.
using System;
namespace _3._Floating_Equality
{
class Program
{
static void Main(string[] args)
{
double eps = 0.000001;
double n1 = 0.0;
double n2 = 0.0;
while (true)
{
n1 = double.Parse(Console.ReadLine());
n2 = double.Parse(Console.ReadLine());
bool isEqual = Math.Abs(n1 - n2) < eps;
if (isEqual)
{
Console.WriteLine("True");
}
else
{
Console.WriteLine("False");
}
}
}
}
}
Thank you very much.
I have misunderstood the task.