C # program for the above approach
using System ; using System . Collections . Generic ; class GFG { static readonly double PI = 3.141592653589 ; class pair { public double first , second ; public pair ( double first , double second ) { this . first = first ; this . second = second ; } }