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_on_Rectangle_Border
- {
- class Point_on_Rectangle_Border
- {
- static void Main(string[] args)
- {
- double x1 = double.Parse(Console.ReadLine());
- double y1 = double.Parse(Console.ReadLine());
- double x2 = double.Parse(Console.ReadLine());
- double y2 = double.Parse(Console.ReadLine());
- double x = double.Parse(Console.ReadLine());
- double y = double.Parse(Console.ReadLine());
- if ((((x == x1) || (x == x2)) && (y1 <= y) && (y <= y2)) ||
- (((y == y1) || (y == y2)) && (x1 <= x) && (x <= x2)) )
- Console.WriteLine("Border");
- else Console.WriteLine("Inside / Outside");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement