DEV Community

Nandini Chauhan
Nandini Chauhan

Posted on

1 1

Help with a pattern problem.

Hy Devs,
I'm learning Java for the first time. I don't have much programming experience. Can somebody help me with a pattern problem. We have to take an integer n from user and print the following pattern. If n is 4 then pattern will be as shown in code.
I just need some hint here.

A
BC
CDE
DEFG
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay