Advertisement
mrfeedoz

Prak3 II (4)

Sep 16th, 2019
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.83 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.  
  7. namespace Prak3_II__4_
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             double x, y, x2, y2;
  14.             Console.Write("Введите x: ");
  15.             x = double.Parse(Console.ReadLine());
  16.             Console.Write("Введите y: ");
  17.             y = double.Parse(Console.ReadLine());
  18.             x2 = x * x;
  19.             y2 = y * y;
  20.             if (x2 + y2 < 64 && x2 + y2 > 9 && x < 0)
  21.                 Console.WriteLine("Да");
  22.             else if (x2 + y2 > 64 || x2 + y2 < 9 || x > 0)
  23.                 Console.WriteLine("Нет");
  24.             else
  25.                 Console.WriteLine("На границе");
  26.             Console.ReadKey();
  27.  
  28.  
  29.         }
  30.     }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement