Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c69633b

Browse files
prints the outline of a house using tilde (~) characters
1 parent f20f310 commit c69633b

File tree

1 file changed

+8
-8
lines changed
  • textbook work/java software solutions/intro

1 file changed

+8
-8
lines changed

‎textbook work/java software solutions/intro/PP2.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ public class PP2 {
55
* */
66

77
public static void main(String[] args){
8-
System.out.println(" ~\n" +
9-
" ~ ~\n" +
10-
" ~ ~\n" +
11-
" ~~~~~~~\n" +
12-
" ~ ~\n" +
13-
" ~ ~\n" +
14-
" ~ ~\n" +
15-
"~~~~~~~~~");
8+
System.out.println(" ~");
9+
System.out.println(" ~ ~");
10+
System.out.println(" ~ ~");
11+
System.out.println(" ~~~~~~~");
12+
System.out.println(" ~ ~");
13+
System.out.println(" ~ ~");
14+
System.out.println(" ~ ~");
15+
System.out.println("~~~~~~~~~");
1616
}
1717
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /