public static void Main() { Console.WriteLine("Task 2.6 for XT_EPAM" + "\n\r--------------------"); int x; int y; double innR, outR; Console.WriteLine("Enter X:"); x = InputFromConsole.IsInteger(); Console.WriteLine("Enter Y:"); y = InputFromConsole.IsInteger(); Console.WriteLine("Enter inner R:"); innR = InputFromConsole.IsDouble(); Console.WriteLine("Enter outer R:"); outR = InputFromConsole.IsDouble(); Point center = new Point(x, y); Round innerRound = new Round(center); innerRound.Radius = innR; Round outerRound = new Round(center); outerRound.Radius = outR; outerRound.GetInfo(); innerRound.GetInfo(); Ring myRing = new Ring(innerRound, outerRound); myRing.GetInfo(); }
public static void Main() { Console.WriteLine("Task 1.1 for XT_EPAM" + "\n\r--------------------"); Console.WriteLine("Enter X"); double x = InputFromConsole.IsDouble(); Console.WriteLine("\n\rEnter Y"); double y = InputFromConsole.IsDouble(); RectangleSquare(x, y); return; }
public static void Main() { Console.WriteLine("Task 2.2 for XT_EPAM" + "\n\r--------------------"); double a, b, c; Console.WriteLine("Enter A:"); a = InputFromConsole.IsDouble(); Console.WriteLine("Enter B:"); b = InputFromConsole.IsDouble(); Console.WriteLine("Enter C:"); c = InputFromConsole.IsDouble(); Triangle triangle = new Triangle(a, b, c); triangle.GetInfo(); }
public static void Main() { Console.WriteLine("Task 2.1 for XT_EPAM" + "\n\r--------------------"); int x; int y; double r; Console.WriteLine("Enter X:"); x = InputFromConsole.IsInteger(); Console.WriteLine("Enter Y:"); y = InputFromConsole.IsInteger(); Console.WriteLine("Enter R:"); r = InputFromConsole.IsDouble(); Point p1 = new Point(x, y); Round Circle = new Round(x, y); Round Circle2 = new Round(p1); Circle.GetInfo(); Circle2.GetInfo(); }