Computer Science, asked by RjAnna, 6 days ago

wap to display the pattern 55555
4444
333
22
1​

Answers

Answered by harshitakhande27
1

Answer:

class number pyramid

{

public static void main(String[] args)

{

for(int r=5;r>=1;r--)

{

for(int c=1;c<=r;c++)

{

System.out.print(r);

}

System.out.println();

}

}

}

Similar questions