Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace tochkavfigura
- {
- class Program
- {
- static void Main(string[] args)
- {
- var h = double.Parse(Console.ReadLine());
- var x = double.Parse(Console.ReadLine());
- var y = double.Parse(Console.ReadLine());
- if ( (x > 0 && x < 3*h) && y > 0 && y < h)
- Console.WriteLine("inside");
- else if ( (x > h && x < 2*h) && y > 0 && y < 4*h)
- Console.WriteLine("inside");
- else if ((x >= h && x <= 2 * h) && y >= 0 && y <= 4 * h)
- Console.WriteLine("border");
- else if ((x >= 0 && x <= 3 * h) && y >= 0 && y <= h)
- Console.WriteLine("Border");
- else
- Console.WriteLine("outside");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement