write programs to display the following patterns: 54321 4321 321 21 1
Answers
Answered by
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
Math,
5 months ago
English,
5 months ago
Computer Science,
10 months ago
Math,
1 year ago
Math,
1 year ago