Advertisement
Guest User

Untitled

a guest
Sep 4th, 2015
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. Console.Write("Enter number a:");
  2. double a = double.Parse(Console.ReadLine());
  3. Console.Write("Enter number b:");
  4. double b = double.Parse(Console.ReadLine());
  5. double eps = 0.000001;
  6.  
  7. if (a > b);
  8. {
  9. if (a - b> eps);
  10. {
  11. Console.WriteLine("The two number are not equal with presicion 0.000001 ");
  12. areEqual = false
  13. }
  14. else
  15. {
  16. Console.WriteLine("The two number are equal with presicion 0.000001 ");
  17. }
  18.  
  19. }
  20. else if (b > a);
  21. {
  22. if (a - b> eps);
  23. {
  24. Console.WriteLine("The two number are not equal with presicion 0.000001 ");
  25.  
  26. }
  27.  
  28. }
  29.  
  30.  
  31.  
  32.  
  33.  
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement