Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApplication5
- {
- class Program
- {
- static void Main(string[] args)
- {
- var h = int.Parse(Console.ReadLine());
- var x1 = 0;
- var y1 = x1;
- var x2 = h;
- var y2 = h;
- var x3 = (2 * h);
- var y3 = (4 * h);
- var x4 = (3 * h);
- var y4 = h;
- var x = int.Parse(Console.ReadLine());
- var y = int.Parse(Console.ReadLine());
- if (((x > x2) && (y > y2) && (x < x3) && (y < y3)) || ((x > x1) && (y > y1) && (x < x4) && (y < y4)))
- {
- Console.WriteLine("inside");
- }
- else if (((x == x2) && (y == y2) && (x == x3) && (y == y3)) || ((x == x1) && (y == y1) && (x == x4) && (y == y4)))
- {
- Console.WriteLine("Boreder");
- }
- else
- {
- Console.WriteLine("outside");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement