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