Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class _07PointsInCircle
- {
- static void Main()
- {
- double x = double.Parse(Console.ReadLine());
- double y = double.Parse(Console.ReadLine());
- int radius = 2;
- bool isInCircle = (x-0)*(x-0) + (y-0)*(y-0) <= radius*radius;
- Console.WriteLine(isInCircle);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement