Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class PointInACircle
- {
- static void Main()
- {
- Console.Write("x = ");
- double x = double.Parse(Console.ReadLine());
- Console.Write("y = ");
- double y = double.Parse(Console.ReadLine());
- bool isInside = (x * x) + (y * y) <= (2 * 2);
- Console.WriteLine("These coordinates are inside the circle = " + isInside);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement