Web appOpen in Telegram

PostDiamond Pattern of number n

19 June 2025
<
</> ᴍᴜᴋᴇsʜ </>
Diamond Pattern of number n public class diamond { public static void diamond_pattern(int n) { for (int i = 1; i <= n; i++) { // blank space for (int j = 1; j <= (n - i); j++) { System.out.print(" "); } // star for (int j = 1; j <= 2 * (i - 1) + 1; j++) { System.out.print("*"); } System.out.println(); } for (int i = n; i >= 1; i--) { // blank space for (int j = 1; j <= (n - i); j++) { System.out.print(" "); } // star for (int j = 1; j <= 2 * (i - 1) + 1; j++) { System.out.print("*"); } System.out.println(); } } public static void main(String[] args) { diamond_pattern(5); } } Output: * *** ***** ******* ********* ********* ******* ***** *** *
2 · 1.6K ·

Nearby in the feed

<</> ᴍᴜᴋᴇsʜ </>Solid Rhombus Pattern for number n public class solidrhomus { public static void solidrhomus_pattern(int n) { for (int i = 1; i <= n; i++) { for (int index = 1;<</> ᴍᴜᴋᴇsʜ </>Hollow Rhombus Pattern for number n public class hollowrhombus { public static void hollowrhombus_pattern(int n) { for (int i = 1; i <= n; i++) { for (int j = 1
this message
<</> ᴍᴜᴋᴇsʜ </>Reverse an array public class reverseArr { public static void reverse(int numbers[]) { int start = 0; int last = numbers.length - 1; while (start < last) { int<</> ᴍᴜᴋᴇsʜ </>Subarray public class subArr { public static void subArray(int numbers[]) { for (int i = 0; i < numbers.length; i++) { int start = i; // subarr for (in
JJava Codes Basic to AdvanceJava Codes Basic to Advance@Java_Codes_Pro · channel · Tech
1 988subscribers213posts in the index
Venue feed Open in Telegram

An open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog · Search · How we count