Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Task7
- {
- class Task7
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Value for x: ");
- double x = double.Parse(Console.ReadLine());
- Console.WriteLine("Value for y: ");
- double y = double.Parse(Console.ReadLine());
- Console.WriteLine("Value for x of the circle: ");
- double xc = double.Parse(Console.ReadLine());
- Console.WriteLine("Value for y of the circle : ");
- double yc = double.Parse(Console.ReadLine());
- double r = Math.Sqrt(xc * xc + yc * yc);
- bool isInside = (x- xc) *(x- xc) + (y- yc) * (y- yc) <r*r;
- Console.WriteLine(isInside);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement