Computer Science, asked by josephfranky980, 10 months ago

write programs to display the following patterns: 54321 4321 321 21 1 ​

Answers

Answered by SƬᏗᏒᏇᏗƦƦᎥᎧƦ
18

/* ReverseNumberPyramid . java */

public class ReverseNumberPyramid

{

public static void main (String Args[ ] )

{

for (int I = 5; i >= 1; i --)

{

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

{

System.out.println( j + " " ) ;

}

System.out.println( ) ;

}

}

}

hope it helps you

Similar questions