Advertisement
Lamms

Untitled

Jul 25th, 2015
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. using System;
  2.  
  3. class _07PointsInCircle
  4. {
  5. static void Main()
  6. {
  7. double x = double.Parse(Console.ReadLine());
  8. double y = double.Parse(Console.ReadLine());
  9. int radius = 2;
  10. bool isInCircle = (x-0)*(x-0) + (y-0)*(y-0) <= radius*radius;
  11. Console.WriteLine(isInCircle);
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement