28 lines
560 B
C#
28 lines
560 B
C#
using System;
|
|
|
|
public class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
Console.Write("x = ");
|
|
float x = float.Parse(Console.ReadLine());
|
|
|
|
Console.Write("y = ");
|
|
float y = float.Parse(Console.ReadLine());
|
|
|
|
if (x * x + y * y < 9 && y > 0)
|
|
{
|
|
Console.WriteLine("Внутри");
|
|
}
|
|
else if (x * x + y * y > 9 || y < 0)
|
|
{
|
|
Console.WriteLine("вне");
|
|
}
|
|
else
|
|
{
|
|
Console.WriteLine("на границе");
|
|
}
|
|
|
|
}
|
|
}
|