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
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();
}
}
}
Similar questions