Advertisement
AlexJC

Point in Figure

Aug 27th, 2016
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 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 Point_in_Figure
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. int x = int.Parse(Console.ReadLine());
  14. int y = int.Parse(Console.ReadLine());
  15.  
  16. if ((x >= 4 && x <= 10 && y >= -5 && y <= 3) || (x >= 2 && x <= 12 && y >= -3 && y <= 1))
  17. {
  18. Console.WriteLine("in");
  19. }
  20. else
  21. {
  22. Console.WriteLine("out");
  23. }
  24. }
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement