static int deleteFromStart ( int num , int n ) {
  int d = ( int ) Math . log10 ( num ) + 1 ;
  int rev_new_num = 0 ;
  for ( int i = 0 ;
  num != 0 ;
  i ++ ) {
    int digit = num % 10 ;
    num = num / 10 ;
    if ( i == ( d - n ) ) {
      continue ;
    }
    else {
      rev_new_num = ( rev_new_num * 10 ) + digit ;
    }
  }
  int new_num = 0 ;
  for ( int i = 0 ;
  rev_new_num != 0 ;
  i ++ ) {
    new_num = ( new_num * 10 ) + ( rev_new_num % 10 ) ;
    rev_new_num = rev_new_num / 10 ;
  }
  return new_num ;
}

static int deleteFromStart ( int num , int n ) { int d = ( int ) Math . log10 ( num ) + 1 ; int rev_new_num = 0 ; for ( int i = 0 ; num != 0 ; i ++ ) { int digit = num % 10 ; num = num / 10 ; if ( i == ( d - n ) ) { continue ; } else { rev_new_num = ( rev_new_num * 10 ) + digit ; } } int new_num = 0 ; for ( int i = 0 ; rev_new_num != 0 ; i ++ ) { new_num = ( new_num * 10 ) + ( rev_new_num % 10 ) ; rev_new_num = rev_new_num / 10 ; } return new_num ; }
(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 (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (cast_expression type: (integral_type) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))) right: (decimal_integer_literal)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (decimal_integer_literal)) update: (update_expression (identifier)) 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: (binary_expression left: (identifier) right: (decimal_integer_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) consequence: (block (continue_statement)) alternative: (block (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (identifier)))))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (decimal_integer_literal)) update: (update_expression (identifier)) body: (block (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))))) (return_statement (identifier))))