From 0e85f805e097a56a564e4039bb75cb1d98102d30 Mon Sep 17 00:00:00 2001 From: Vijay Date: Tue, 10 Oct 2023 11:40:54 +0530 Subject: [PATCH] Add output of NumberPattern java programs in commented lines --- Java/Number Patterns/NumberPattern01.java | 12 ++++++++++++ Java/Number Patterns/NumberPattern02.java | 12 ++++++++++++ Java/Number Patterns/NumberPattern03.java | 11 +++++++++++ Java/Number Patterns/NumberPattern04.java | 13 +++++++++++++ Java/Number Patterns/NumberPattern05.java | 12 ++++++++++++ Java/Number Patterns/NumberPattern06.java | 12 ++++++++++++ Java/Number Patterns/NumberPattern07.java | 12 ++++++++++++ Java/Number Patterns/NumberPattern08.java | 12 ++++++++++++ Java/Number Patterns/NumberPattern09.java | 12 ++++++++++++ Java/Number Patterns/NumberPattern10.java | 12 ++++++++++++ Java/Number Patterns/NumberPattern11.java | 14 +++++++++++++- Java/Number Patterns/NumberPattern12.java | 12 ++++++++++++ 12 files changed, 145 insertions(+), 1 deletion(-) diff --git a/Java/Number Patterns/NumberPattern01.java b/Java/Number Patterns/NumberPattern01.java index 34d5dcbf..0f3d5830 100644 --- a/Java/Number Patterns/NumberPattern01.java +++ b/Java/Number Patterns/NumberPattern01.java @@ -10,3 +10,15 @@ public static void main(String[] args) { } } } + +/* + +The output of the above program + +1 +12 +123 +1234 +12345 + + */ \ No newline at end of file diff --git a/Java/Number Patterns/NumberPattern02.java b/Java/Number Patterns/NumberPattern02.java index dd145e6a..e7604405 100644 --- a/Java/Number Patterns/NumberPattern02.java +++ b/Java/Number Patterns/NumberPattern02.java @@ -10,3 +10,15 @@ public static void main(String[] args) { } } } + +/* + +The output of the above program + +1 +22 +333 +4444 +55555 + + */ diff --git a/Java/Number Patterns/NumberPattern03.java b/Java/Number Patterns/NumberPattern03.java index 852e3811..f0477a41 100644 --- a/Java/Number Patterns/NumberPattern03.java +++ b/Java/Number Patterns/NumberPattern03.java @@ -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 + + */ \ No newline at end of file diff --git a/Java/Number Patterns/NumberPattern04.java b/Java/Number Patterns/NumberPattern04.java index 2ba8205a..0caf84ad 100644 --- a/Java/Number Patterns/NumberPattern04.java +++ b/Java/Number Patterns/NumberPattern04.java @@ -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 + + */ + diff --git a/Java/Number Patterns/NumberPattern05.java b/Java/Number Patterns/NumberPattern05.java index 939249bc..4dff4076 100644 --- a/Java/Number Patterns/NumberPattern05.java +++ b/Java/Number Patterns/NumberPattern05.java @@ -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 + + */ diff --git a/Java/Number Patterns/NumberPattern06.java b/Java/Number Patterns/NumberPattern06.java index ecd6d375..8600da12 100644 --- a/Java/Number Patterns/NumberPattern06.java +++ b/Java/Number Patterns/NumberPattern06.java @@ -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 + + */ diff --git a/Java/Number Patterns/NumberPattern07.java b/Java/Number Patterns/NumberPattern07.java index d074a6a1..d8f0f962 100644 --- a/Java/Number Patterns/NumberPattern07.java +++ b/Java/Number Patterns/NumberPattern07.java @@ -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 + + */ \ No newline at end of file diff --git a/Java/Number Patterns/NumberPattern08.java b/Java/Number Patterns/NumberPattern08.java index 912f37c6..c5789d91 100644 --- a/Java/Number Patterns/NumberPattern08.java +++ b/Java/Number Patterns/NumberPattern08.java @@ -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 + + */ diff --git a/Java/Number Patterns/NumberPattern09.java b/Java/Number Patterns/NumberPattern09.java index 845069ae..5156b013 100644 --- a/Java/Number Patterns/NumberPattern09.java +++ b/Java/Number Patterns/NumberPattern09.java @@ -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 + + */ diff --git a/Java/Number Patterns/NumberPattern10.java b/Java/Number Patterns/NumberPattern10.java index 96a7c5e2..6cdcfa77 100644 --- a/Java/Number Patterns/NumberPattern10.java +++ b/Java/Number Patterns/NumberPattern10.java @@ -13,3 +13,15 @@ public static void main(String[] args) { } } } + +/* + +The output of the above program + +*2345 +1*345 +12*45 +123*5 +1234* + + */ diff --git a/Java/Number Patterns/NumberPattern11.java b/Java/Number Patterns/NumberPattern11.java index 456d9b3d..209545d6 100644 --- a/Java/Number Patterns/NumberPattern11.java +++ b/Java/Number Patterns/NumberPattern11.java @@ -42,4 +42,16 @@ public static void main(String[] args) { System.out.println(); } } -} \ No newline at end of file +} + +/* + +The output of the above program + + 1 1 + 2 2 + 3 3 + 4 4 + * + + */ \ No newline at end of file diff --git a/Java/Number Patterns/NumberPattern12.java b/Java/Number Patterns/NumberPattern12.java index a6f2a438..58af0bcf 100644 --- a/Java/Number Patterns/NumberPattern12.java +++ b/Java/Number Patterns/NumberPattern12.java @@ -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 + + */