static void hut_pattern ( int n ) {
  int i , j , t ;
  if ( n % 2 == 0 ) {
    n ++ ;
  }
  for ( i = 0 ;
  i <= n - n / 3 ;
  i ++ ) {
    for ( j = 0 ;
    j < n ;
    j ++ ) {
      t = 2 * n / 5 ;
      if ( t % 2 != 0 ) {
        t -- ;
      }
      if ( i == n / 5 || i == n - n / 3 || ( j == n - 1 && i >= n / 5 ) || ( j >= n / 5 && j < n - n / 5 && i == 0 ) || ( j == 0 && i >= n / 5 ) || ( j == t && i > n / 5 ) || ( i <= n / 5 && ( i + j == n / 5 || j - i == n / 5 ) ) || ( j - i == n - n / 5 ) ) {
        System . out . print ( "*" ) ;
      }
      else if ( i == n / 5 + n / 7 && ( j >= n / 7 && j <= t - n / 7 ) ) {
        System . out . print ( "_" ) ;
      }
      else if ( i >= n / 5 + n / 7 && ( j == n / 7 || j == t - n / 7 ) ) {
        System . out . print ( "|" ) ;
      }
      else {
        System . out . print ( " " ) ;
      }
    }
    System . out . print ( "\n" ) ;
  }
}

static void hut_pattern ( int n ) { int i , j , t ; if ( n % 2 == 0 ) { n ++ ; } for ( i = 0 ; i <= n - n / 3 ; i ++ ) { for ( j = 0 ; j < n ; j ++ ) { t = 2 * n / 5 ; if ( t % 2 != 0 ) { t -- ; } if ( i == n / 5 || i == n - n / 3 || ( j == n - 1 && i >= n / 5 ) || ( j >= n / 5 && j < n - n / 5 && i == 0 ) || ( j == 0 && i >= n / 5 ) || ( j == t && i > n / 5 ) || ( i <= n / 5 && ( i + j == n / 5 || j - i == n / 5 ) ) || ( j - i == n - n / 5 ) ) { System . out . print ( " * " ) ; } else if ( i == n / 5 + n / 7 && ( j >= n / 7 && j <= t - n / 7 ) ) { System . out . print ( " _ " ) ; } else if ( i >= n / 5 + n / 7 && ( j == n / 7 || j == t - n / 7 ) ) { System . out . print ( " | " ) ; } else { System . out . print ( " ▁ " ) ; } } System . out . print ( " \n " ) ; } }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier)) declarator: (variable_declarator name: (identifier)) declarator: (variable_declarator name: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (decimal_integer_literal))) consequence: (block (expression_statement (update_expression (identifier))))) (for_statement init: (assignment_expression left: (identifier) right: (decimal_integer_literal)) condition: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) update: (update_expression (identifier)) body: (block (for_statement init: (assignment_expression left: (identifier) right: (decimal_integer_literal)) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (decimal_integer_literal) right: (identifier)) right: (decimal_integer_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (decimal_integer_literal))) consequence: (block (expression_statement (update_expression (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal))))) right: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))))) right: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal))))) right: (binary_expression left: (identifier) right: (decimal_integer_literal))))) right: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))))) right: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))))) right: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))))))) right: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal))))))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal))))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) right: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))))))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal))))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) right: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))))))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal))))) alternative: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal)))))))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal))))))))