java pattern program pls
Attachments:
Answers
Answered by
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
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
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
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