Computer Science, asked by Swiftyteentigadian, 16 days ago

write a program in Java to display the given format. 12345 1234 123 12 1​

Answers

Answered by sayantikapramanik06
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