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 First
- {
- class MainClass
- {
- public static void Main(string[] args)
- {
- do
- {
- int x = Int32.Parse(Console.ReadLine());
- int y = Int32.Parse(Console.ReadLine());
- bool isInQuadrat = x >= 0 && x <= 5 && y <= 0 && y >= -7;
- bool isIntriangle = x >= 0 && y >= 0 && (y <= 5 - x);
- Console.WriteLine(isIntriangle || isInQuadrat);
- } while (true);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment