Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2017
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.71 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace in_figure
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             var x = int.Parse(Console.ReadLine());
  14.             var y = int.Parse(Console.ReadLine());
  15.  
  16.             if ((((x >= 2 && x <= 12) && (y >= -3 && y <= 1))) || (((x >= 4 && x <= 10) && (y >= -5 && y <= 3))))
  17.             //if (y >= -3 && y <= 1 && x >= 2 && x <= 12||y >= -5 && y <= 2 && x >= 4 && x <= 10)
  18.             {
  19.                 Console.WriteLine("in");
  20.             }
  21.             else
  22.             {
  23.                 Console.WriteLine("out");
  24.             }
  25.         }
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement