Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.70 KB | None | 0 0
  1.  double x, y;
  2.             char sb;
  3.             do
  4.             {
  5.                 Console.WriteLine("Add x");
  6.                 x = double.Parse(Console.ReadLine());
  7.                 Console.WriteLine("Add y");
  8.                 y = double.Parse(Console.ReadLine());
  9.                 if (x >= 0)
  10.                     if ((x * x + y * y <= 4) && (y <= x))
  11.                         Console.WriteLine("G = F({0},{1}), true", x, y);
  12.                     else Console.WriteLine("G = F({0},{1}), false", x, y);
  13.                 else Console.WriteLine("G = F({0},{1}), false", x, y);
  14.                 Console.WriteLine("To repeat press 1");
  15.                 sb = char.Parse(Console.ReadLine());
  16.             } while (sb == '1');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement