Computer Science, asked by sandeepcharlie1, 11 months ago

Write a program in java to print the following pattern with comments and variable description
12345
1234
123
12
1

Answers

Answered by jayesh7thfebtl
0

Answer:

class Pattern

{

public static void main(String args[])

{

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

{

for(int j=1;j<=i;j++)

{

System.out.println(b);

{

System.out.println("");

}

}

Explanation:

Similar questions