Not Getting The Correct Pattern

I Entered All The Lines According To The Video and Check Multiple Time But Still I’m Getting The Wrong Pattern While Running The For Pattern 4, I’m attaching the screenshot Please Anyone Solve My Doubt.

Hey @harshitkaushik2002_74316a3c9848efff,
In line number 22 and 29, you need to use System.out.print instead of System.out.println as System.out.println also prints a new line which isnt required in this case.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

Thank You So Much…