Maximum LCM among all pairs ( i , j ) of first N natural numbers | C # implementation of the approach ; Function to return the maximum LCM among all the pairs ( i , j ) of first n natural numbers ; Driver code
using System ; class GFG { static int maxLCM ( int n ) { return ( n * ( n - 1 ) ) ; } public static void Main ( String [ ] args ) { int n = 3 ; Console . WriteLine ( maxLCM ( n ) ) ; } }