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 Z_2
- {
- class Program
- {
- static void Main(string[] args)
- {
- int q1 = 1, q = 1;
- while (q==q1)
- {
- Console.Write("Введите x: ");
- double x = double.Parse(Console.ReadLine());
- Console.Write("Введите y: ");
- double y = double.Parse(Console.ReadLine());
- if (x > -15 && y > -15 && x < 0 && y < 0)
- {
- Console.WriteLine("нет");
- }
- else
- {
- if (x==-15 && y<=0 && y>=-15 || x==0 && y <= 0 && y >= -15 || y==-15 && y <= 0 && y >= -15 || y == 0 && x <= 0 && x >= -15)
- {
- Console.WriteLine("на границе");
- }
- else
- {
- Console.WriteLine("да");
- }
- }
- Console.WriteLine("Если хотите продолжить введите 1");
- q = int.Parse(Console.ReadLine());
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement