Write a program in java to print the following pattern using only for loops
for N number of rows...
here N is 3.
__1
_121
12321
_121
__1
Answers
Answered by
2
Answer:
class jaspreet
{
p s v m(int N)
{
for(int i=1;i<=N;i++)
{
for(int k=N;k>=i;k--)
S.O.P(" ");
for(int j=1;j<=i;j++)
S.O.P(j);
for(int l=j-1;l<=1;l++)
S.O.PLN(l);
}}}
Please Mark As Brainliest
Similar questions