write a program in Java to display the given format. 12345 1234 123 12 1
Answers
Answered by
5
Explanation:
class Series
{
public static void main (String args[ ])
for( int i=5; i>=1;i–)
{
for( int j=1; i<=i;j++)
{
System.out.print(j);
}
System.out.println( );
}
}
Similar questions
Computer Science,
8 days ago
English,
8 days ago
Math,
16 days ago
Science,
9 months ago
Math,
9 months ago