public static int check ( int x , int y ) {
  while ( true ) {
    if ( y < 10 ) {
      if ( y == x ) return 1 ;
      else return 0 ;
    }
    else {
      int temp = 1 ;
      while ( y > 0 ) {
        int rem = y % 10 ;
        y /= 10 ;
        if ( rem > 0 ) temp *= rem ;
      }
      y = temp ;
    }
  }
}

public static int check ( int x , int y ) { while ( true ) { if ( y < 10 ) { if ( y == x ) return 1 ; else return 0 ; } else { int temp = 1 ; while ( y > 0 ) { int rem = y % 10 ; y /= 10 ; if ( rem > 0 ) temp *= rem ; } y = temp ; } } }
(method_declaration (modifiers) type: (integral_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier))) body: (block (while_statement condition: (parenthesized_expression (true)) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (return_statement (decimal_integer_literal)) alternative: (return_statement (decimal_integer_literal)))) alternative: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (identifier) right: (decimal_integer_literal)))) (expression_statement (assignment_expression left: (identifier) right: (decimal_integer_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (expression_statement (assignment_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))))))))