C # program for the above approach
using System ; public class GFG { class pair { public float first ; public float second ; public pair ( float first , float second ) { this . first = first ; this . second = second ; } }