Advertisement
NadyaMisheva

8.1. tochka vurhy figyra

Nov 23rd, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.33 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.         if ((x>=4 && x <= 10 && y >= -5 && y<=3) || (x>=2 && x <= 12 && y >= -3 && y<=1))
  10.         {
  11.             Console.WriteLine("in");
  12.         }
  13.         else
  14.         {
  15.             Console.WriteLine("out");
  16.         }
  17.        
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement