Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class CheckPointInTheCircle
- {
- static void Main()
- {
- Console.WriteLine("Please enter the first coordinate x of the point:");
- double xValue = double.Parse(Console.ReadLine());
- Console.WriteLine("Please enter the second coordinate y of the point:");
- double yValue = double.Parse(Console.ReadLine());
- Console.WriteLine(Math.Pow(xValue, 2) + Math.Pow(yValue, 2) < Math.Pow(5, 2)?"The point is within the circle K(0,5).":"The point is outside the circle K(0,5).");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement