Sovun

Untitled

Sep 23rd, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.62 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. namespace First
  7. {
  8.     class MainClass
  9.     {
  10.         public static void Main(string[] args)
  11.         {
  12.             do
  13.             {
  14.                 int x = Int32.Parse(Console.ReadLine());
  15.                 int y = Int32.Parse(Console.ReadLine());
  16.                 bool isInQuadrat = x >= 0 && x <= 5 && y <= 0 && y >= -7;
  17.                 bool isIntriangle = x >= 0 && y >= 0 && (y <= 5 - x);
  18.                 Console.WriteLine(isIntriangle || isInQuadrat);
  19.             } while (true);
  20.  
  21.         }
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment