Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Point_in_Figure
- {
- class Program
- {
- static void Main(string[] args)
- {
- int x = int.Parse(Console.ReadLine());
- int y = int.Parse(Console.ReadLine());
- if ((x >= 4 && x <= 10 && y >= -5 && y <= 3) || (x >= 2 && x <= 12 && y >= -3 && y <= 1))
- {
- Console.WriteLine("in");
- }
- else
- {
- Console.WriteLine("out");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement