Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Task 003, Chapter 4.0
- using System;
- public class PointInRectangle
- {
- static void Main()
- {
- 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 && y >= y1 && y <= y2)
- {
- Console.WriteLine("Inside");
- }
- else
- {
- Console.WriteLine("Outside");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment