Skip to content

Commit

Permalink
Merge pull request #647 from vijayv18/number-pattern-output-java
Browse files Browse the repository at this point in the history
Number pattern output java
  • Loading branch information
mergify[bot] authored Oct 11, 2023
2 parents 4b7522c + 0e85f80 commit cbb01d8
Show file tree
Hide file tree
Showing 12 changed files with 145 additions and 1 deletion.
12 changes: 12 additions & 0 deletions Java/Number Patterns/NumberPattern01.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,15 @@ public static void main(String[] args) {
}
}
}

/*
The output of the above program
1
12
123
1234
12345
*/
12 changes: 12 additions & 0 deletions Java/Number Patterns/NumberPattern02.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,15 @@ public static void main(String[] args) {
}
}
}

/*
The output of the above program
1
22
333
4444
55555
*/
11 changes: 11 additions & 0 deletions Java/Number Patterns/NumberPattern03.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,14 @@ public static void main(String[] args) {
}
}
}

/*
The output of the above program
1
2 3
4 5 6
7 8 9 10
*/
13 changes: 13 additions & 0 deletions Java/Number Patterns/NumberPattern04.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,16 @@ public static void main(String[] args) {
}
}
}

/*
The output of the above program
1
2 1
3 2 1
4 3 2 1
5 4 3 2 1
*/

12 changes: 12 additions & 0 deletions Java/Number Patterns/NumberPattern05.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,15 @@ public static void main(String[] args) {
}
}
}

/*
The output of the above program
1
1 2 1
1 2 3 2 1
1 2 3 4 3 2 1
1 2 3 4 5 4 3 2 1
*/
12 changes: 12 additions & 0 deletions Java/Number Patterns/NumberPattern06.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,15 @@ public static void main(String[] args) {
}
}
}

/*
The output of the above program
5 4 3 2 1
5 4 3 2
5 4 3
5 4
5
*/
12 changes: 12 additions & 0 deletions Java/Number Patterns/NumberPattern07.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,15 @@ public static void main(String[] args) {
}
}
}

/*
The output of the above program
1
2 6
3 7 10
4 8 11 13
5 9 12 14 15
*/
12 changes: 12 additions & 0 deletions Java/Number Patterns/NumberPattern08.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,15 @@ public static void main(String[] args) {
}
}
}

/*
The output of the above program
1 2 3
6 5 4
7 8 9
12 11 10
13 14 15
*/
12 changes: 12 additions & 0 deletions Java/Number Patterns/NumberPattern09.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,15 @@ public static void main(String[] args) {
}

}

/*
The output of the above program
1 2 3 4 5
1 2 3 4
1 2 3
1 2
1
*/
12 changes: 12 additions & 0 deletions Java/Number Patterns/NumberPattern10.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,15 @@ public static void main(String[] args) {
}
}
}

/*
The output of the above program
*2345
1*345
12*45
123*5
1234*
*/
14 changes: 13 additions & 1 deletion Java/Number Patterns/NumberPattern11.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,16 @@ public static void main(String[] args) {
System.out.println();
}
}
}
}

/*
The output of the above program
1 1
2 2
3 3
4 4
*
*/
12 changes: 12 additions & 0 deletions Java/Number Patterns/NumberPattern12.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,15 @@ public static void main(String[] args) {
}

}

/*
The output of the above program
1 6 10 13 15
2 7 11 14
3 8 12
4 9
5
*/

0 comments on commit cbb01d8

Please sign in to comment.