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_Rectangle
- {
- class Point_in_Rectangle
- {
- static void Main(string[] args)
- {
- var x1 = decimal.Parse(Console.ReadLine());
- var y1 = decimal.Parse(Console.ReadLine());
- var x2 = decimal.Parse(Console.ReadLine());
- var y2 = decimal.Parse(Console.ReadLine());
- var x = decimal.Parse(Console.ReadLine());
- var y = decimal.Parse(Console.ReadLine());
- if ((x >= x1) && (x <= x2) && (y >= y1) && (y <= y2))
- Console.WriteLine("inside");
- else
- Console.WriteLine("outside");
- }
- }
- }
Add Comment
Please, Sign In to add comment