Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void Main()
- {
- Console.Write("Enter number a:");
- double a = double.Parse(Console.ReadLine());
- Console.Write("Enter number b:");
- double b = double.Parse(Console.ReadLine());
- double eps = 0.000001;
- if (a > b);
- {
- if (a - b> eps);
- {
- Console.WriteLine("The two number are not equal with presicion 0.000001 ");
- areEqual = false
- }
- else
- {
- Console.WriteLine("The two number are equal with presicion 0.000001 ");
- }
- }
- else if (b > a);
- {
- if (a - b> eps);
- {
- Console.WriteLine("The two number are not equal with presicion 0.000001 ");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement