Telegram Group & Telegram Channel
24. Christmas tree pattern
X
X
XXX
X
XXXXX
X
XXX
XXXXXX


class ChristmasTreePattern
{
public static void main(String[] arg)
{
drawChristmasTree(4);
}

private static void drawChristmasTree(int n)
{
for (int i = 0; i < n; i++)
{
triangle(i + 1, n);
}
}

private static void triangle(int n, int max)
{
for (int i = 0; i < n; i++)
{
for (int j = 0; j < max - i - 1; j++)
{
System.out.print(" ");
}

for (int j = 0; j < i * 2 + 1; j++)
{
System.out.print("X");
}

System.out.println("");
}
}
}

@java_codings



tg-me.com/java_codings/36
Create:
Last Update:

24. Christmas tree pattern
X
X
XXX
X
XXXXX
X
XXX
XXXXXX


class ChristmasTreePattern
{
public static void main(String[] arg)
{
drawChristmasTree(4);
}

private static void drawChristmasTree(int n)
{
for (int i = 0; i < n; i++)
{
triangle(i + 1, n);
}
}

private static void triangle(int n, int max)
{
for (int i = 0; i < n; i++)
{
for (int j = 0; j < max - i - 1; j++)
{
System.out.print(" ");
}

for (int j = 0; j < i * 2 + 1; j++)
{
System.out.print("X");
}

System.out.println("");
}
}
}

@java_codings

BY Advance Java πŸ‘¨β€πŸ’»


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/java_codings/36

View MORE
Open in Telegram


Advance Java ‍ Telegram | DID YOU KNOW?

Date: |

Look for Channels Online

You guessed it – the internet is your friend. A good place to start looking for Telegram channels is Reddit. This is one of the biggest sites on the internet, with millions of communities, including those from Telegram.Then, you can search one of the many dedicated websites for Telegram channel searching. One of them is telegram-group.com. This website has many categories and a really simple user interface. Another great site is telegram channels.me. It has even more channels than the previous one, and an even better user experience.These are just some of the many available websites. You can look them up online if you’re not satisfied with these two. All of these sites list only public channels. If you want to join a private channel, you’ll have to ask one of its members to invite you.

A Telegram spokesman declined to comment on the bond issue or the amount of the debt the company has due. The spokesman said Telegram’s equipment and bandwidth costs are growing because it has consistently posted more than 40% year-to-year growth in users.

Advance Java ‍ from ca


Telegram Advance Java πŸ‘¨β€πŸ’»
FROM USA