Computer Science, asked by Arene, 1 year ago

java pattern program pls

Attachments:

Answers

Answered by manitkapoor2
0
See think your logic

Imagine your are going print 2d array 
you have to fill the pattern in your 2d array

Look at pattern, lets first go for number pattern at left side

Here I will generalize the line based on line number 
Each line will contain 4*n-3 characters

Here is your Program Attached



Attachments:
Answered by chaitanyakrishn1
0
Import java . util. Scanner; 
Class name
{
Public static void main (Sting args[])
{
Scanner in = new Scanner (System.in);
System.out.println (---------------);
--------
-----
------
------
------
------
------
}
}
}
}



Hope it helps

Thank u ★ ★ ★
#ckc
Similar questions