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 fffcdda

Browse files
prints an hourglass shape
1 parent f6e2b8e commit fffcdda

File tree

1 file changed

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

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
public class PP3.java {
2+
/**
3+
* Write a program that prints an hourglass shape.
4+
* */
5+
6+
public static void main(String[] args){
7+
System.out.println("#########\n" +
8+
" ##### \n" +
9+
" ### \n" +
10+
" # \n" +
11+
" ### \n" +
12+
" ##### \n" +
13+
"#########");
14+
}
15+
}

0 commit comments

Comments
(0)

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