Anzzhhela98

kk

Jun 3rd, 2020
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.70 KB | None | 0 0
  1. using System;
  2.  
  3. namespace кордината
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int x1 = int.Parse(Console.ReadLine());
  10.             int y1 = int.Parse(Console.ReadLine());
  11.             int x2 = int.Parse(Console.ReadLine());
  12.             int y2 = int.Parse(Console.ReadLine());
  13.             int x = int.Parse(Console.ReadLine());
  14.             int y = int.Parse(Console.ReadLine());
  15.             if (x>=x1&& x<=x2&& y>=y1&& y<=y2)
  16.             {
  17.                 Console.WriteLine("Inside");
  18.             }
  19.  
  20.             else
  21.             {
  22.                 Console.WriteLine("Outside");
  23.             }
  24.                
  25.            
  26.         }
  27.     }
  28. }
Add Comment
Please, Sign In to add comment