Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace test1
- {
- class Program
- {
- static void Main()
- {
- double a = double.Parse(Console.ReadLine());
- double b = double.Parse(Console.ReadLine());
- decimal eps = (decimal)Math.Abs(a - b);
- if (eps < 0.000001M)
- {
- Console.WriteLine("True");
- }
- else
- {
- Console.WriteLine("False");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment