Computer Science, asked by abhinavraj0001, 1 year ago

write a program t o print the following pattern :
5
4 5
3 4 5
2 3 4 5
1 2 3 4 5


KyloRen314: in blue j

Answers

Answered by KyloRen314
2

public class patt

{

public static void main (int i)

{

for(i=5;i>=1;i–)

{

for(j=i;j<=5;j++)

{

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

}

System.out.println();

}

}

}


KyloRen314: mark as brainliest
Similar questions