dsavov_02

dots

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