give rational number 2 / 7 , 3 / 14 , 5 / 3 make pair as a numerator and denominator
vect . push_back ( make_pair ( 2 , 7 ) ) ; vect . push_back ( make_pair ( 3 , 14 ) ) ; vect . push_back ( make_pair ( 5 , 3 ) ) ; lcmOfRationals ( vect ) ; return 0 ; }