SHARE
TWEET

Prak3 II (4)

mrfeedoz Sep 16th, 2019 100 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top