Advertisement
Vladimir76

Untitled

Feb 8th, 2017
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.95 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Intersection_of_Circles
  8. {
  9.     class Point
  10.     {
  11.         public double X { get; set; }
  12.         public double Y { get; set; }
  13.     }
  14.  
  15.     class Circle:Point
  16.     {
  17.         public Point Center { get; set; }
  18.         public double Radius { get; set; }
  19.     }
  20.  
  21.     class Program
  22.     {
  23.         static void Main()
  24.         {
  25.             string firstCircle = Console.ReadLine();
  26.             string secondCircle = Console.ReadLine();
  27.  
  28.             double[] firstCircleArr = firstCircle
  29.                 .Trim()
  30.                 .Split(' ')
  31.                 .Select(double.Parse)
  32.                 .ToArray();
  33.             double[] secondCircleArr = secondCircle
  34.                 .Trim()
  35.                 .Split(' ')
  36.                 .Select(double.Parse)
  37.                 .ToArray();
  38.             List<Point>
  39.         }
  40.     }
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement