static int LCMOfFractions ( int num [ ] , int den [ ] , int N ) {
  int Numerator = LCM ( num , N ) ;
  int Denominator = HCF ( den , N ) ;
  int gcd1 = gcd ( Numerator , Denominator ) ;
  Numerator = Numerator / gcd1 ;
  Denominator = Denominator / gcd1 ;
  System . out . println ( "LCM is = " + Numerator + "/" + Denominator ) ;
  return 0 ;
}

static int LCMOfFractions ( int num [ ] , int den [ ] , int N ) { int Numerator = LCM ( num , N ) ; int Denominator = HCF ( den , N ) ; int gcd1 = gcd ( Numerator , Denominator ) ; Numerator = Numerator / gcd1 ; Denominator = Denominator / gcd1 ; System . out . println ( " LCM ▁ is ▁ = ▁ " + Numerator + " / " + Denominator ) ; return 0 ; }
(method_declaration (modifiers) type: (integral_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier) dimensions: (dimensions)) (formal_parameter type: (integral_type) name: (identifier) dimensions: (dimensions)) (formal_parameter type: (integral_type) name: (identifier))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (binary_expression left: (string_literal) right: (identifier)) right: (string_literal)) right: (identifier))))) (return_statement (decimal_integer_literal))))