Telegram Group & Telegram Channel
35. Number pattern 10.


1
121
12321
1234321
123454321
12345654321
1234567654321


import java.util.*;

class Pattern
{
public static void main(String[] args)
{
int i, j, k = 1, l, n;
Scanner sc = new Scanner(System.in);

System.out.println("Enter the number of levels of pattern");
n = sc.nextInt();

System.out.println("\nPattern is : \n");

for (i = 1; i <= n; i++)
{
l = i;

for (j = 1; j <= k; j++)
{
if (j >= i + 1)
{
System.out.print(--l);
}

else
{
System.out.print(j);
}
}

k = k + 2;
System.out.println(" ");
}
}
}

@java_codings



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

35. Number pattern 10.


1
121
12321
1234321
123454321
12345654321
1234567654321


import java.util.*;

class Pattern
{
public static void main(String[] args)
{
int i, j, k = 1, l, n;
Scanner sc = new Scanner(System.in);

System.out.println("Enter the number of levels of pattern");
n = sc.nextInt();

System.out.println("\nPattern is : \n");

for (i = 1; i <= n; i++)
{
l = i;

for (j = 1; j <= k; j++)
{
if (j >= i + 1)
{
System.out.print(--l);
}

else
{
System.out.print(j);
}
}

k = k + 2;
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/47

View MORE
Open in Telegram


Advance Java ‍ Telegram | DID YOU KNOW?

Date: |

Dump Scam in Leaked Telegram Chat

A leaked Telegram discussion by 50 so-called crypto influencers has exposed the extraordinary steps they take in order to profit on the back off unsuspecting defi investors. According to a leaked screenshot of the chat, an elaborate plan to defraud defi investors using the worthless β€œ$Few” tokens had been hatched. $Few tokens would be airdropped to some of the influencers who in turn promoted these to unsuspecting followers on Twitter.

What is Telegram?

Telegram is a cloud-based instant messaging service that has been making rounds as a popular option for those who wish to keep their messages secure. Telegram boasts a collection of different features, but it’s best known for its ability to secure messages and media by encrypting them during transit; this prevents third-parties from snooping on messages easily. Let’s take a look at what Telegram can do and why you might want to use it.

Advance Java ‍ from us


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