static void printNcR ( int n , int r ) {
  long p = 1 , k = 1 ;
  if ( n - r < r ) {
    r = n - r ;
  }
  if ( r != 0 ) {
    while ( r > 0 ) {
      p *= n ;
      k *= r ;
      long m = __gcd ( p , k ) ;
      p /= m ;
      k /= m ;
      n -- ;
      r -- ;
    }
  }
  else {
    p = 1 ;
  }
  System . out . println ( p ) ;
}

static void printNcR ( int n , int r ) { long p = 1 , k = 1 ; if ( n - r < r ) { r = n - r ; } if ( r != 0 ) { while ( r > 0 ) { p *= n ; k *= r ; long m = __gcd ( p , k ) ; p /= m ; k /= m ; n -- ; r -- ; } } else { p = 1 ; } System . out . println ( p ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal)) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) body: (block (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (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: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (update_expression (identifier))) (expression_statement (update_expression (identifier)))))) alternative: (block (expression_statement (assignment_expression left: (identifier) right: (decimal_integer_literal))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (identifier))))))