Guest User

Untitled

a guest
Oct 8th, 2017
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.48 KB | None | 0 0
  1. using System;
  2.  
  3. namespace test1
  4. {
  5.     class Program
  6.     {
  7.         static void Main()
  8.         {
  9.             double a = double.Parse(Console.ReadLine());
  10.             double b = double.Parse(Console.ReadLine());
  11.             decimal eps = (decimal)Math.Abs(a - b);
  12.             if (eps < 0.000001M)
  13.             {
  14.                 Console.WriteLine("True");
  15.             }
  16.             else
  17.             {
  18.                 Console.WriteLine("False");
  19.             }
  20.         }
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment