Advertisement
fbinnzhivko

04. Point in Figure

Jun 4th, 2016
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.39 KB | None | 0 0
  1. using System;
  2. class Program
  3. {
  4.     static void Main()
  5.     {
  6.         int x = int.Parse(Console.ReadLine());
  7.         int y = int.Parse(Console.ReadLine());
  8.  
  9.  
  10.         if (((x >= 4 && x <= 10) && (y >= -5 && y <= 3)) ||
  11.                 (x >= 2 && x <= 12) && (y >= -3 && y <= 1))
  12.         {
  13.             Console.WriteLine("in");
  14.         }
  15.         else{Console.WriteLine("out");}
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement