Computer Science, asked by arunmardi10, 3 months ago

Print the following pattern for the given N number of
roWS
Pattern for N = 4
4444
333
22
1​

Answers

Answered by amansarrafas24payxgs
0

Answer:

class Pattern

{

public void main()

{

for(int i = 4;i >= 1;i--)

{

for(int j = 1;j >= i;j--)

{

System.out.print(i);

}

}

}

}

I hope you find it useful... If you have any query do comment, I will try to solve it...

Similar questions