int val= 10;
for (int row = 1; row<=4; row ++ )
{
for(int col = 1; col<=row; col++)
{
System.out.print(val+" ");
val--;
}
System.out.println();
}
out put
10
9 8
7 6 5
4 3 2 1
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)